jqGrid Update Filter Toolbar Dropdowns after Search
Asked Answered
A

1

1

After looking at this answer from @Oleg, I would like to know how we can update the filter toolbar after a search has been performed.

For example:

In Oleg's example, if you select the Sport option from the Category dropdown, the Subcategory dropdown still has Football, Formula 1, Mathematics and Physics as options even though they are not shown in the grid after the search.

How can we update that code so that, for example, when I select Sport from the Category dropdown, the filter toolbar is updated so that the dropdowns only have options from the new set of data after the search?

I've been trying to "refresh" or "update" the filter toolbar after a search has been performed, but I can't figure out how to do this.

Abominable answered 25/3, 2015 at 17:47 Comment(0)
A
3

What you mean is dependent selects. I posted the answer with the demo which demonstrates the solution. I plan to implement soon new feature in free jqGrid (it's my fork of jqGrid) the possibility to refresh the options of select. It will make the implementation of dependent select much more simple. Currently one have to refill all options manually.

Affined answered 25/3, 2015 at 19:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.