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

[Solved] Problem in SortExpression

3 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
saurabh
Top achievements
Rank 1
saurabh asked on 14 Jan 2009, 07:53 AM
I am having an entity which acts as datasource for the grid. For a column A the datasource is Name.Subject. Now when I aplly sortexpression="Subject" or sortexpression="Name.Subject" it throws an exception "Column name doesnt exist". How to specify the sirtexpression in this case.

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 16 Jan 2009, 12:48 PM
Hello saurabh,

Setting sort expressions through properties of nested objects is not supported currently by our web grid. This enhancement has been logged in our system to be considered for the next versions of the product.

A possible workaround would be to expose a property for your parent object which returns the value of the nested property and assign that outer property through the SortExpression of the column. I hope this is feasible for your case.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Madhu
Top achievements
Rank 1
answered on 07 Jul 2013, 07:48 AM
Hello Sebastian,
  I'm also looking the feature discussed earlier in this thread. Can you confirm this has been implemented or not? If not is there any quick  workaround ? 

Regards
Madhu
0
Radoslav
Telerik team
answered on 11 Jul 2013, 06:33 AM
Hi Madhu,

The current version of RadGrid supports the desired functionality. I am sending you a simple example which demonstrates it. Please check it out and let me know if it helps you.

Looking forward for your reply.

Regards,
Radoslav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
saurabh
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Madhu
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or