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
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.
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 ?
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.