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

SortPropertyName not found in RadGridView Sorting event for Q3 2011 SP1

4 Answers 28 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hiren
Top achievements
Rank 1
Hiren asked on 17 Jan 2012, 10:00 AM
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


4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 17 Jan 2012, 10:28 AM
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 >>
0
Hiren
Top achievements
Rank 1
answered on 17 Jan 2012, 10:48 AM
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
0
Dimitrina
Telerik team
answered on 17 Jan 2012, 12:48 PM
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 >>
0
Hiren
Top achievements
Rank 1
answered on 17 Jan 2012, 01:01 PM
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
Tags
GridView
Asked by
Hiren
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Hiren
Top achievements
Rank 1
Share this question
or