Clear Dropdown Dependant

QuestionsClear Dropdown Dependant
Stephen asked 3 years ago

I have a problem with dependant dropdown for searching.

After selecting a value in dropdown 1 the values in dropdown 2 update correctly.
If I then select no value in dropdown 1 the grid updates to all records but dropdown 2 only show values from the previous selection.

Is there a way to reset dropdown 2 when dropdown 1 is reset.?

5 Answers
Abu Ghufran Staff answered 3 years ago

Hello,

I have regenerated the issue and will be updating back.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Stephen answered 3 years ago

Hi Abu,

Just checking if there is any update on this issue?

This may also be related, I’ve noticed that the Reload grid button does not clear the value in dropdown 1.

Thanks in advance,

Stephen

Abu Ghufran Staff replied 3 years ago

It’s still in progress. Will update you back on some success.

Abu Ghufran Staff answered 2 years ago

Apologies for the big delay. I’ve emailed you the build.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Chetan answered 2 years ago

Abu, We are having the same issue where reset is not clearing dropdown filter. Can we get the fix please?

Abu Ghufran Staff answered 2 years ago

Hello,

Depending on the version you are using, You need to compare and merge the fx_get_dropdown function in jqgrid_dist.php byself.

The latest code with fix is linked here: https://gist.github.com/gridphp/472615a0fbd06782fd7ba8f7a8bbf6c3

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

5 + 8 =

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?