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

Multiple sorting programatically

1 Answer 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 12 Jul 2012, 12:40 PM
Hi,
i tried to add a multiple sorting to a table object, but it didnt worked the way it should.

Could you give me a short example how to add multiple sortings?

Thanks,
Michael

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 13 Jul 2012, 04:06 PM
Hello Michael,

There shouldn't be any trouble when using multiple sortings. You can add them programmatically like this:
this.table1.Sortings.Add(new Sorting("=Fields.Field_Name"));
and repeat that for each sorting you would like to add. The order of the sortings execution will be the order in which you insert them. 
 
Regards,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or