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

Column's Sortexpression

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 09 Mar 2010, 07:38 PM
I have a quick question. I have a column whose text is coming from my objects Item property like:  myObject.Item("corn_acres")

Is there a way to use that for the sort expression of my column, something like Item("corn_acres"). Is there any way to have the grid sort that column so i do not have to sort the collection myself?

thanks!

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 12 Mar 2010, 10:23 AM
Hi ApexUnited,

Unfortunately, sorting and data operations are not supported on nested or indexed fields in Radgrid, even though databinding succeeds. You will have to either create a wrapper object around your data entity that exposes Item["corn_acres"] as a public property, or transfer your object data to a DataTable or DataSet for RadGrid to bind.

Best wishes,
Veli
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.
Tags
Grid
Asked by
Dave
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or