Reload Grid button not reset select2 and/or daterange from inline search inputs

QuestionsReload Grid button not reset select2 and/or daterange from inline search inputs
Adrian asked 3 years ago

Hi everyone,

When I pressed the "Reload Grid" button, all inline search entries were reset except to those of type "daterange" and "select2"…
The button (Reload Grid) work properly because reload all records without filtering, but I need also to reset all search inputs.
How do I do this for "daterange" and "select2" search inputs?

Thanks,
Adrian

1 Answers
Abu Ghufran answered 3 years ago

For select2, you can set
:
$grid["loadComplete"] = "function(){ $('#gs_client_id').trigger('change'); }";
$g->set_options($grid);

Where client_id is $col["name"].

For daterangepicker, it's taking a lot of modifications and not supported now.

Your Answer

5 + 13 =

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?