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

[Solved] Sorting By Template Column

7 Answers 244 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
judowalker
Top achievements
Rank 1
judowalker asked on 18 Sep 2010, 02:52 AM
When will templated columns be sortable? Also, is there a workaround to sort by templated column?

I have a templated column that displays an image if a certain condition is true. I would like to be able to sort by that column so that the rows that contain an image (condition is true) are displayed first.

Thanks.

7 Answers, 1 is accepted

Sort by
0
Andre' Hazelwood
Top achievements
Rank 1
answered on 21 Sep 2010, 12:37 AM
This is also something that we need to be able to do.
0
Atanas Korchev
Telerik team
answered on 21 Sep 2010, 07:27 AM
Hi Andre' Hazelwood,

 Currently only bound columns can be sorted. You can however set the template of a bound column easily.

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
judowalker
Top achievements
Rank 1
answered on 21 Sep 2010, 07:31 AM
Atanas,

Could you explain how to set the template of a bound column?

Thanks.
0
Accepted
Atanas Korchev
Telerik team
answered on 21 Sep 2010, 07:34 AM
Hello judowalker,

You can check the columns help topic.

Best wishes,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Andre' Hazelwood
Top achievements
Rank 1
answered on 21 Sep 2010, 02:34 PM
That was exactly what I needed.  I knew what column I wanted to sort on, so binding it and then adding the template was perfect.
0
judowalker
Top achievements
Rank 1
answered on 23 Sep 2010, 09:19 PM
That's exactly what I needed too. Thanks for your help.
0
Ruchi
Top achievements
Rank 1
answered on 24 Apr 2012, 08:58 AM
HI,

I am also facing the same Issue, I need to make the highlighted column in the attched image sortable/Filterable.

I am using Razor view engine.

can anyone guide me?

Thanks,
Ruchi Patel
Tags
Grid
Asked by
judowalker
Top achievements
Rank 1
Answers by
Andre' Hazelwood
Top achievements
Rank 1
Atanas Korchev
Telerik team
judowalker
Top achievements
Rank 1
Ruchi
Top achievements
Rank 1
Share this question
or