This is a migrated thread and some comments may be shown as answers.

Multi-Column Custom Sorting

3 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marin
Top achievements
Rank 1
Marin asked on 14 Jan 2011, 07:20 PM
Hi,
I have radgrid and I use custom sorting because I have to apply sort by two columns in database but in the grid they visualized as one. Some of the requirements in my project have changed and I have to use multi-column sort. I there a way to use them both(multi_column sort and custom sort) or some other way to achieve that.
Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 18 Jan 2011, 02:16 PM
Hello Marin,

I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this message.

Please take a look at it and let me know whether it helps.

All the best,
Mira
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Marin
Top achievements
Rank 1
answered on 20 Jan 2011, 05:44 PM
The prepared scenario looks good, but in case there are only 2 columns in the grid. When there are more columns it should be extended to track the order of the ordered columns.
0
Mira
Telerik team
answered on 24 Jan 2011, 12:38 PM
Hello Marin,

Your observations are indeed right.
The sort expression of each column should be maintained manually, so that you can build the custom query for fetching the required data.

I hope this helps.

All the best,
Mira
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Marin
Top achievements
Rank 1
Answers by
Mira
Telerik team
Marin
Top achievements
Rank 1
Share this question
or