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.

row header selection

Thread ID:

Created:

Updated:

Platform:

Replies:

46941 Jul 25,2006 09:44 AM Jul 25,2006 07:10 PM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Sandy
Asked On July 25, 2006 09:44 AM

I am dealing with a very large recordset for my grid (80,000 records). What I would like to do is pass the records back to my page in smaller groups. What my problem is, I would like to do the sorting at the server side before I return the data so I need to turn the sorting off but yet allow the user to click on a header to send an event for me to capture to sort. My question is...what event is sent when a row header is clicked?

Thanks,
Sandy

Ramu [Syncfusion]
Replied On July 25, 2006 07:10 PM

Hi Sandy,

This can be done by handling the "GridGroupingControl.TableDescriptor.SortedColumns.Changed" event.This event is fired for both sorting and unsorting the columns in the column header.

You must add the code in the page_Init() or page_Load() method

[C#]

this.GridGroupingControl1.TableDescriptor.SortedColumns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(this.GridGroupingControl1_SortedColumnsChanged);


In SortedColumnsChanged event, you can perform the required changes based on the “ListPropertyChangedEventHandler” action

Sample code:
------------

[C#]

private void GridGroupingControl1_SortedColumnsChanged(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{




switch (e.Action)
{
case ListPropertyChangedType.ItemChanged:
case ListPropertyChangedType.Add:
{
this.GridGroupingControl1.TableDescriptor.SortedColumns.Clear();
//Your code goes here....
}
}
}

Let me know if you have any questions.

Thanks,
Ramu.K

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.

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.

;