Hi Abu
I detected that if you have a grid with multiselect = true and scroll = true when you add a new item to the grid this don't refresh correctly and continues to show the previous situation.
The solution:
$grid["add_options"]["afterSubmit"] = "function(){ window.location.reload(); return [true, ''];}";
that i read in another post isn't very elegant.
There isn't other solution?
Thanks in advance
Massimo Gagliardi
2 Answers
I am unable to generate this issue and it works as expected.
Looks to be some JS error that is blocking reload grid. Please see debug console. (F12)
in dems/editing/inex.php you can try:
$grid["multiselect"] = true;
$grid["scroll"] = true;
$g->set_options($grid);
Your Answer