Hello Abu
How can i trigge the update of the master grid when performin a clone action in the subgrid? i have tried with a custom function but i can get it work
function custom_clone($data)
{
function(){jQuery(‘#list2’).trigger(‘reloadGrid’,[{jqgrid_page:1}]); return [true, ”];}
}
have a look at http://support.phpgrid.org/questions/2-grids-on-same-page-refresh-2nd-grid-with-javascript/
Hello Wing
I appreciate your willingness to help. My problem is specifically with the CLONE event that is not triggering the refresh in the master grid. The refresh in the onAfterSave, add_options,edit_options and delete_options Work flawless.
i have the code line
**grid_event** = “function(){jQuery(‘#list2’).trigger(‘reloadGrid’,[{jqgrid_page:1}]); return [true, ”];}”;
in each of these events and none triggers the refresh of the master grid( which is named list2)
regards
I missed this ticket somehow. The library does not have any event like onAfterClone.
We’ll be adding it in todos.
If you need it desperately, you can hack into lib/inc/jqgrid_dist.php and inject your code here:
hello, Any comments?