We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Filter on SfDataGrid display incorrect list of items

Hi,
I have attached a sample project that illustrates the problem.

If the project is run, and the topmost DataGrid has 3 items deselected in the filter popup, when the popup is reopened it has extra items in the list that shouldn't be there!
The following images explain what I mean (also included in the project/Images folder)!

AllItemsSelectedInFirstDataGrid - this is what happens when you first click the filter


DeselectThreeItemsInFirstDataGrid - we still see the correct list of items in the filter list


FirstDataGridNowShowingIncorrectExtraItems(5,6,7,8,9) - but now, after we click the filter button again, the filter list suddenly includes all the items from the other DataGrid!


Please help!
James.

Attachment: TestApp_2f0a28b5.rar

2 Replies

JR James Randle December 21, 2015 12:32 AM UTC

Just to clarify the instructions:
1) Run project
2) Click the filter button on one of the top DataGrid columns
3) Deselect 3 of the items in the filter popup list
4) Click OK
5) Click the filter button on the same top DataGrid column
6) Notice that extra (5,6,7,8,9) items have appeared in the filter list, that should only be found in the bottom DataGrid





SP Sowndaiyan Paulpandi Syncfusion Team December 21, 2015 12:25 PM UTC

Hi James,


Thank you for contacting Syncfusion Support.

We have analyzed your query with the details provided in your previous update. In SfDataGrid, it is not possible to apply both Row Filter and Column Filter simultaneously. So we recommend you to use the ItemSoure which has been filtered already for each DataGrid instead of filtering directly in DataGrid. We have modified the sample with filtered ItemSource and you can download sample from the below location,


Sample : http://www.syncfusion.com/downloads/support/forum/121492/ze/TestApp1173690014


Regards,

Sowndaiyan


Loader.
Up arrow icon