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

Self-referencing hierarchy different sorting expression

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon Lavoie
Top achievements
Rank 1
Simon Lavoie asked on 06 Oct 2008, 08:59 PM
Hi,
I have a radgrid (2008.1.619.20) with the self-hierarchy.  I used it to display the messages and replies of a forum. 
I want to sort messages by date, the parents being sorted by date descending and the replies by date ascending.

Is this possible to do this with the radgrid ?

Thanks,
Simon

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 09 Oct 2008, 11:36 AM
Hi Simon,

One possible implementation in this case would be to add the sort expressions programmatically, for each table (be it master table, or detail nested table). How to iterate through the self-referencing hierarchy, you can learn from the following article. I hope this helps.

Sincerely yours,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Simon Lavoie
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or