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

Sort Template

2 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
altaf
Top achievements
Rank 1
altaf asked on 29 Aug 2008, 07:45 AM
hello,
i have a template column in the grid which has a Label it it.

i am adding text on this label in ItemDataBound event on the basis of id geeting from that row.

and now i want to sort this column how can i do it.
i have tried SortExpression which get the field but i am not binding that field therefore it gives me error
'cannot find column Rating'.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 29 Aug 2008, 08:17 AM
Hello altaf,

You can sort only by fields in the grid data source. Possible solution is to create calculated column and you can use also custom sorting (second grid).

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
altaf
Top achievements
Rank 1
answered on 29 Aug 2008, 11:42 AM
thanks.
Tags
Grid
Asked by
altaf
Top achievements
Rank 1
Answers by
Vlad
Telerik team
altaf
Top achievements
Rank 1
Share this question
or