Grid summary based on filter option

How do i display summary for various filter options when all default values are loaded by the grid.


1 Reply

YO Yogeshwaran Syncfusion Team January 31, 2012 01:01 PM UTC


Hi Harry,

Thanks for using Syncfusion products.

Your requirement to get the filter options can be achieved by using record filter changing event .Please refer the following code snippet.

[Codebehind –C#]


void RecordFilters_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
RecordFilterDescriptor Filter = e.Item as RecordFilterDescriptor;
String LogicalOpertor = Filter.LogicalOperator.ToString();
String ColumnName = Filter.Name;

FilterConditionCollection Condition = Filter.Conditions as FilterConditionCollection;
string CompareText = Condition[Condition.Count - 1].CompareValue.ToString();
string CompareOperator = Condition[Condition.Count - 1].CompareOperator.ToString();


}



For your convenience, we have created the sample and the same can be downloaded from below link.

GridSearchBox1607166683.zip

Please let us know if you have any concerns.

Regards,
Yogesh R


Loader.
Up arrow icon