SortPropertyName not found in RadGridView Sorting event for Q3 2011 SP1

5 posts, 0 answers
  1. Hiren
    Hiren avatar
    26 posts
    Member since:
    Feb 2009

    Posted 17 Jan 2012 Link to this post

    Hello

    I have upgrade the silverlight telerik version from Q2 2011 SP1 to Q3 2011 SP1.

    I have on middle of my project i have RadGridview Sorting event to get the Sortfield in custom paging.

    I am using e.SortPropertyName to get the sort field name in sorting event. 

    When i upgrade telerik setup to latest one i got error like e.SortPropertyName  not found. I have implement in my ongoing project with more than 50 RadGridview. 

    Can you please provide better solution for this issue?

    Thanks,
    Hiren


  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Jan 2012 Link to this post

    Hello Hiren,

     Indeed you are right. The reason is that this property was obsoleted.
    Instead of it you could use the Column property of the GridViewSortingEventArgs.

    Please let me know if you have any further questions.

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. Hiren
    Hiren avatar
    26 posts
    Member since:
    Feb 2009

    Posted 17 Jan 2012 Link to this post

    Hello Didie,

    Thanks for your reply.

    Can you please provide me code how can i get Sort field name using the column property.

    Thanks,
    Hiren
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Jan 2012 Link to this post

    Hello Hiren,

    I am not sure what exactly is the context where you use the SortPropertyName.
    For example instead of it, you could use:
    e.Column.UniqueName

    or the column itself. Could you please let me know what do you do with the source field name?

    Regards,
    Didie
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  5. Hiren
    Hiren avatar
    26 posts
    Member since:
    Feb 2009

    Posted 17 Jan 2012 Link to this post

    Hello Didie,

    Thanks for the reply.

    I cannot used uniquename property because it i have already use this property to set the arabic text while switch language from English to Arabic.

    In Custom paging i am passing database column name for sorting, so i required the name of column.

    Can i use SortMemberpath for this ?

    Thanks,
    Hiren
Back to Top