row header selection

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

1 Reply

RA Ramu Syncfusion Team July 25, 2006 11:10 PM UTC

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

Loader.
Up arrow icon