I have a query done in the business layer of my ASP.net AJAX application. It uses EF 4.0. It returns an ObjectDataSource.
How can I put this into a RadGrid and still have Sorting?
Is it possible for RadGrid to sort ObjectDataSource and/or a List (of)?
Serban.
1 Answer, 1 is accepted
0
Marin
Telerik team
answered on 27 Dec 2010, 11:31 AM
Hello Serban,
RadGrid can bind to many different kinds of data sources including ObjectDataSource.
There are two possible options when you require sorting:
1. You can use the NeedDataSource event handler to assign any data collection to the grid. This way the grid handles the sorting automatically (when AllowSorting="true").
2. If you have declaratively set binding to ObjectDataSource then you should also set the OverrideDataSourceControlSorting property of the MasterTableView to true to let the grid handle the sorting functionality.