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

Can't sort by field on inner GridTableView

3 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rubens
Top achievements
Rank 1
Rubens asked on 22 Sep 2011, 04:39 AM
Hi there,

I have a RadGrid with a MasterTableView and an inner GridTableView, as in master-detail samples. I want to enable sorting just on inner TableView.

When I click some column, an error shows up telling a field from detail object wasn't found on master object.

How can I address this?

TIA.

Rubens

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Sep 2011, 05:22 AM
Hello Rubens,

When using NeedDataSource event and DetailTableDataBind event, RadGrid can automatically accommodate the appropriate database operations without the need for you explicitly handle any sorting, paging, grouping, and so on.
Check the following demo which implements a similar scenario.
Grid / Programmatic Binding.

Thanks,
Princy.
0
Rubens
Top achievements
Rank 1
answered on 22 Sep 2011, 11:18 PM
I'm using NeedDataSource and DetailTableDataBound, but when I click an inner grid column, DetailTableDataBind doesn't fire.
Besides, I'm working with custom collections and, without an automatic behavior from RadGrid, I'll have to deal with expression translation to properly order that objects.

I also noted a strange behavior: after sorting, RadGrid bind on inner grid my master object, not my inner collection.

So, RadGrid doesn't support this scenario or it's a bug?

Thanks,
0
Radoslav
Telerik team
answered on 28 Sep 2011, 07:15 AM
Hello Rubens,

I tried to reproduce the described issue but to no avail. I am sending you a simple example, please check it out and let me know what differs in your case.

Looking forward for your reply.

Greetings,
Radoslav
the Telerik team
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 their blog feed now
Tags
Grid
Asked by
Rubens
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Rubens
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or