multiselect & scroll = true

Questionsmultiselect & scroll = true
Massimo Gagliardi asked 7 years ago

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
Abu Ghufran answered 7 years ago

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);

Massimo answered 7 years ago

Hi Abu, with the last release (build 20160725-0106) it's all ok
Thanks

Your Answer

7 + 19 =

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?