I use Excel style filtering with the SfDataGrid, but unlike Excel the available checkboxes are built from the filtered items not from all items.
Steps to reproduce:
I have a column with values "Europe" and "USA".
1) Open the filter and see two unchecked checkboxes for Europe and USA 2) Apply a filter for "Europe" 3) Open the filter popup the second time and only see one (!) checked checkboxs for "Europe" but I would expect to also see a second unchecked checkbox for "USA"
IS this behaviour configurable or how do I come by to achieve it?
SPSowndaiyan Paulpandi Syncfusion Team July 22, 2016 01:31 PM UTC
Thank you for contacting Syncfusion support.
We have checked your reported issue and also we have prepared the sample as per your scenario. But we were not able to reproduce the reported issue. For your reference we have attached the tested sample and video in the below location. Please revert by modifying the attached sample based on your application and also share the details about which Syncfusion product version you have used in your application. It will be helpful for us to analyze further.
thank you for the sample which is of course working. :-) After checking the deifferences between your an my implementation I realized that my Grids are fed from an Entity Framework datasource, so the ObservableCollection contains DynamicProxies which looks like it makes the difference. As soon as I feed my ObservableCollection manually with standard objects my grids work just as expected.
So how can I solve this?
SPSowndaiyan Paulpandi Syncfusion Team July 26, 2016 12:35 PM UTC
We have checked your reported issue with Entity collection and the SfDataGrid filter popup is properly loaded the all records after filtering the particular column. So could you please modify the below sample as per your application and revert back to us. It will be helpful for us to analyze further. Our tested Entity Collection sample :
the proble in my case are the DynamicProxies of my model objects. If I programatically set ctx.Configuration.ProxyCreationEnabled = false; then I get normal model entities instead of dynamic proxies and the filter works as expected. But I cannot do that because I would loose lazy loading and automated change tracking.
Find attached a demo to demonstrate the behaviour. It uses a MSSQLLocalDb Database instead of a MDF.
SPSowndaiyan Paulpandi Syncfusion Team July 28, 2016 11:52 AM UTC
Hi Bernd, We have checked your query and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.