Hi,
I am binding my GridView to QueryableDataServiceCollectionView<T> to load data from a WCF Data Service.I wanted to disaplay the grid built-in busy indicator when paging/sorting the grid, so I set DataLoadMode to Asynchronous.Paging works fine and the busy indicator is shown when data is being fetched but sorting stopped working.Clicking on the column header does not trigger anything.
Environment:
VS 2012
RadControls 2012 Q3
.NET 4.5
WCF 5.0
Thanks
Madani
I am binding my GridView to QueryableDataServiceCollectionView<T> to load data from a WCF Data Service.I wanted to disaplay the grid built-in busy indicator when paging/sorting the grid, so I set DataLoadMode to Asynchronous.Paging works fine and the busy indicator is shown when data is being fetched but sorting stopped working.Clicking on the column header does not trigger anything.
MyEntities db =
new
MyEntities(Global.DataServiceUri);
var query = db.Sims;
QueryableDataServiceCollectionView<Sim> dataContext =
new
QueryableDataServiceCollectionView<Sim>(db, query);
dataContext.PageSize = 20;
dataContext.AutoLoad =
true
;
DataContext = dataContext;
<telerik:RadGridView DataLoadMode=
"Asynchronous"
Name=
"SimsGridView"
ItemsSource=
"{Binding}"
CanUserFreezeColumns=
"False"
AutoGenerateColumns=
"False"
MouseDoubleClick=
"SimsGridView_MouseDoubleClick"
>
Environment:
VS 2012
RadControls 2012 Q3
.NET 4.5
WCF 5.0
Thanks
Madani