I want to implement filtering for a column which should filter when a dropdown selection happens.
How could I populate the filter dropdown?
Hi vnt_prabhu,
I'm not sure what you're talking about.
If I understand you correctly you want something like "excel style filtering". This is feature which we have in our NA for ASP.NET WebDataGrid (here you can view sample), but not yet in NA for jQuery.
For now you can implement workaround. Simply speaking you need dropdown with distinct values from the column which you will be filtering and then you have to call igGridFiltering filter method on "onchange" event of the dropdown.
P.S.: If this is not what you're trying to accomplish please clarify.
Hope this helps,
Martin Pavlov
Infragistics, Inc.
Hi Martin,
Thanks for your prompt reply.
I want the filers to be like how it is applied in UltraWebGrid using FilterOptions and FilterDropDownStyles.
Its like when you click on the filter for any column which is a dropdown the filter opens up as a dropdown with the list for it. Changing the dropdown, filters the grid for that selected value.
Regards,
vnt_prabhu
Attached you can find sample on how you can accomplish that.
In the sample I disable filtering on Color column and inject igCombo in the filtering row for this column.
igCombo is bound to distinct color values taken from the data source.
On igCombo selectionChanged event I use igGridFiltering filter API method to simulate filtering.
Note: This sample works with our latest 12.1 2022 service release (released yesterday), because there was one known issue which broke the sample. This is the reason for my late answer.
We are looking for similar implementation in igGrid. However we want multiple selection in combo box.
Also, as WbDataGrid provides filtering with check-box (http://www.infragistics.com/products/aspnet/sample/data-grid/filtering-excel-style), is it possible to implement in JQuery igGrid?
Regards.
Hi Peter,
Attached you can find sample which mimics WebDataGrid excel style filtering behavior.
Best regards,