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

Filtering data ?

1 Answer 12 Views
Grid
This is a migrated thread and some comments may be shown as answers.
El
Top achievements
Rank 1
El asked on 04 Feb 2009, 08:14 PM
I have a RadGrid and a lot of data binded in.
One of the templates items contains several database fields and i want to order the items by few fields.
For example i want to be able to order the items by field Name and also by Address. What do you suggest that i build-in that i can set the order by these two fields (ASC and DESC). I was thinking of commanditem's just like the refresh and insert commands.

Thank you

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 09 Feb 2009, 12:24 PM
Hello El,

You can sort the data, through the sorting mechanism of the grid control. Simply set the sort expression and DataField to a valid field in the database.
I hope this suggestion helps.

Best wishes,
Yavor
the Telerik team

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