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

Sorting Question

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Developer
Top achievements
Rank 1
Developer asked on 15 May 2015, 07:25 AM
Hi,

I have a radgrid that has 3 columns.  The first two are databound and the last is a gridtemplate column.

Initially only the first two rows are populated via a sql data source.  Then on the itemdatabound event I take a values from the first columns and use this derive a new value which is then added into the label control on the tempatecolumn.

 

This works fine up until the point I need to sort.  Sorting works on the first two columns but not on the template one.

Have I reached a limitation or am I doing something wrong?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 May 2015, 07:32 AM
Hi,

I am afraid this requirement is not supported. RadGrid needs to use an existing field in the data source in order to apply filtering, sorting, grouping, etc.

As a workaround, you can extract your values in a DataTable and include an additional column which you can fill manually:
http://www.telerik.com/help/aspnet-ajax/grid-advanced-data-binding.html

Hope this helps.

Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Developer
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or