reload other grid after delete

Questionsreload other grid after delete
johan gunawan asked 6 years ago

hello, i want ask about how to reload grid in my page i have 2 grid. at first grid i have delete row but i want in grid 2 has reload grid too, not just grid 1

at grid i has write this :
$grid["delete_options"]["afterSubmit"] = "function(){jQuery('#list2').trigger('reloadGrid',[{jqgrid_page:1}]); return [true,''];}";

but still not reload in grid 2

thank you

4 Answers
Abu Ghufran answered 6 years ago

Hello,

Your code segment looks fine and should work., if you share complete code i can further review it.

johan gunawan answered 6 years ago

Hello Mr Abu Ghufran,

my syntax like in this link :

<a href="http://pastebin.com/HuePNRD7">this link</a>

johan gunawan answered 6 years ago

i just added in line 11, but still grid 2 not automatic reload when i delete row in grid 1

oh ya revision in pastebin line 70 i have erase or not use

thank you MR Abu Ghufran

Abu Ghufran answered 6 years ago

I am unable to regenerate this issue.

It is working in demos. I added this line in demos/master-detail/master-detail.php
$opt["delete_options"]["afterSubmit"] = "function(){jQuery('#list2').trigger('reloadGrid',[{jqgrid_page:1}]); return [true,''];}";
$grid->set_options($opt);

Your Answer

16 + 0 =

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?