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

ETA on sortable column templates?

2 Answers 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 07 Dec 2011, 11:48 PM
Per the demo notes, the MVC Grid doesn't currently support sorting by template columns. Any idea on when this might be coming?

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 Dec 2011, 09:35 AM
Hello Robert,

 Template columns are never going to be sortable as a template column can contain arbitrary HTML - buttons, images etc. It is possible however to set the template of a bound column which works since the very first versions of Telerik Extensions for ASP.NET MVC:

columns.Bound(o => o.OrderID).Template(@<text>
<strong>@item.OrderID</strong>)
</text>);

Greetings,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Robert
Top achievements
Rank 1
answered on 08 Dec 2011, 03:21 PM
Thanks for the tip!
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Robert
Top achievements
Rank 1
Share this question
or