Column's Sortexpression

2 posts, 0 answers
  1. Dave
    Dave avatar
    38 posts
    Member since:
    Jul 2007

    Posted 09 Mar 2010 Link to this post

    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!
  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 12 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top