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

Filtering on GridGroupingControl

Hello,
I would like to filter the data displayed in the grid by adding a pre-selected value but i would like to let the user be able to select the other possible values.

When i add a condition on the filtering , the other possible values are not available, i see only the Status that i have filtered.

GridRecordFilterDescriptor gfd = new GridRecordFilterDescriptor();
gfd.Name = "Status";
gfd.Conditions.Add(Syncfusion.Grouping.FilterCompareOperator.Equals, "1");
this.GridGroupingControl1.TableDescriptor.GridRecordFilters.Add(gfd);





filter_grid_e0067370.zip

1 Reply

JB Jaffersathick B Syncfusion Team March 31, 2010 03:48 AM UTC

Hi Alban,

Thank you for your interest in Syncfusion products.



The default behaviour of the filter bar cell is it will show all the possible unique record values from the whole datatable . Eventhough you have filtered the records it will show the possible values for the whole datasource of the GridGroupingControl.


Please refer the sample from the below link:


http://samples.syncfusion.com/ASPNET/8.1.0.30/web/Grid.Grouping.Web/samples/3.5/Filtering/ComboBoxTextCell/cs/FilterBarDemo.aspx?args=5



Let me know if you have any other concerns.


Regards,
Jaffer.B

Loader.
Live Chat Icon For mobile
Up arrow icon