jQuery UI Widgets › Forums › Grid › filter row one dropdown filters second dropdown
Tagged: angular grid, angular2 grid, bootstrap grid, javascript grid, jquery grid, jqwidgets grid, jqxgrid, typescript grid
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 8 years, 10 months ago.
-
Author
-
hi folks,
imaging the following:
i have a small grid, 2 columns, with filter row, dropdowns.
in the first column is manufacturer, second colum is model.
in the grid there are 9 lines:
mercedes 190
mercedes 250
mercedes 500
porsche 911
porsche 944
porsche panamera
bmw 320
bmw 330
bwm 750when i chose in the manufakturer filter row dropdown porsche the grid filters and i see 3 rows.
but the second dropdown in filter row for model includes all 9 models.is there a way that the model dropdown also gets filtered, so that i only see the 3 porsche models?
kindest regards, frank
Hello frankbur1,
I would like to suggest you look at this example, you could try to create a workaround:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/filtering-menu-custom-widgets.htm?lightBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comhello hristo,
thx for answer.
but i see no workaround with your example.
i’m sorry, i’m not a wizard, can you give me a few hints to get started?THX , kindest regards, frank
Hello frank,
I am sorry for this misunderstanding, I was not clear.
In the mentioned example there isbuildFilterPanelfunction that creates custom ‘filter menu’ for the “firstname” and “lastname” datafields.
They use “jqxInput” for filtering and when typing something (usingkeydownevent) this activate filtering functionality.
In this place, you could try to use jqxDropDownList instead of ‘jqxInput’ for your case.
You could get feel more comfortable when filtering with this example: http://jsfiddle.net/jqwidgets/P7BCs/
Hope this help.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.