omrsbr / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

Send grid object to onSuccess method #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
User defined method onSuccess() could be given the grid object as a parameter.

In my case, this allows me to work on grid content after data is loaded

line 529
--  if (p.onSuccess) p.onSuccess();
++  if (p.onSuccess) p.onSuccess(this);

Thanks for advance

Original issue reported on code.google.com by youx...@gmail.com on 16 Apr 2009 at 10:58

GoogleCodeExporter commented 8 years ago
Done and in trunk.

Original comment by eric.caron on 22 Apr 2011 at 10:01

GoogleCodeExporter commented 8 years ago
I'd like to receive more than just the grid itself, onSuccess(this, data, p); 
and move data = null after the call.
I pass some extra information along the grid lines from the server, and process 
on client side sometimes, and p is the parameters used, sometimes is dynamic.

onSubmit is also changed to onSubmit(p), so I can add dynamic data to submit 
parameters.

Original comment by harrypit...@gmail.com on 2 Apr 2012 at 4:43