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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Events grid grouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

100752 Sep 2,2011 07:00 AM UTC Mar 1,2018 11:02 AM UTC Windows Forms 3
loading
Tags: GridControl
Prabu Natarajan
Asked On September 2, 2011 07:00 AM UTC

Hi
In my application i used Syncfusion grid grouping control to bind the data . now i need to know, what are the events fired when user filter the record using type header filter,b'cos if user filter the records means need to show the some propertise in my application . Reply ASAP


Arulraj A [Syncfusion]
Replied On September 5, 2011 03:56 AM UTC

Hi Prabu,

Thank you for using Syncfusion Products.

You can handle the following events each of which provides the respective behavior as needed with respect to filtering.

//Filter about to start
this.gridGroupingControl1.TableDescriptor.RecordFilters.Changing += new Syncfusion.Collections.ListPropertyChangedEventHandler(RecordFilters_Changing);

//Filtering completed
this.gridGroupingControl1.TableDescriptor.RecordFilters.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(RecordFilters_Changed);

//Occurs when a record is checked for meeting filter criteria
this.gridGroupingControl1.QueryRecordMeetsFilterCriteria += new QueryRecordMeetsFilterCriteriaEventHandler(gridGroupingControl1_QueryRecordMeetsFilterCriteria);



void RecordFilters_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
//Console.WriteLine("Filtering Completed......");
Console.WriteLine("Filter Count:"+this.gridGroupingControl1.TableDescriptor.RecordFilters.Count);
}

void RecordFilters_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
Console.WriteLine("Filtering Started.....");
}


void gridGroupingControl1_QueryRecordMeetsFilterCriteria(object sender, QueryRecordMeetsFilterCriteriaEventArgs e)
{
Console.WriteLine("Filtering Going on......");
}


To get the filtered record count you are in need to get it from the GridTable object. The following code illustrates the same.

void RecordFilters_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
if (e.Action == Syncfusion.Collections.ListPropertyChangedType.Refresh )
{
Console.WriteLine("Filter Count:" + this.gridGroupingControl1.Table.FilteredRecords.Count.ToString());
}
}

Let me know if you have any further concerns.

Regards,
Arulraj.A



Jesus Zuñiga
Replied On February 28, 2018 02:15 PM UTC

I agree

Arulpriya Ramalingam [Syncfusion]
Replied On March 1, 2018 11:02 AM UTC

Hi Jesus, 
 
Okay, kindly revert us if you need any further assistance. 
 
Regards, 
Arulpriya 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;