reload master affer subgrid clone row

Questionsreload master affer subgrid clone row
Jorge Delfin Neri asked 5 years ago

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, ”];}

Jorge Delfin Neri replied 5 years ago

hello, Any comments?

3 Answers
Jorge D answered 5 years ago

Hello , Any comments?

Wing answered 5 years ago

have a look at

Jorge Delfin Neri replied 5 years ago

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)


Abu Ghufran Staff answered 5 years ago

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:

Abu Ghufran - Dev Team
Grid 4 PHP Framework
Your Answer

6 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?