I am currently getting the following error when sorting a grid bound to a RIA datasource when there are pending changes
Sorting cannot be applied when CanLoad is false. Applying sorting initiates a load operation, and load operations are not permitted when CanLoad is false. Controls that apply sorting should be disabled when CanLoad is false.
Also happens for grouping - filtering is fine.
This was not happening with the Q2 release
I was performing the following in the Q2 release to stop a call back
in Q3 release, the SortRunCancelLoadingData method is never called and a call to server is never made - the sorting works fine until there are changes
if the sort is already applied, and the data is change the sort updates correctly
Sorting cannot be applied when CanLoad is false. Applying sorting initiates a load operation, and load operations are not permitted when CanLoad is false. Controls that apply sorting should be disabled when CanLoad is false.
Also happens for grouping - filtering is fine.
This was not happening with the Q2 release
I was performing the following in the Q2 release to stop a call back
private void RadGridView_Sorting(object sender, GridViewSortingEventArgs e)
{
this.DataSource.LoadingData += this.SortRunCancelLoadingData;
}
private void RadGridView_Grouping(object sender, GridViewGroupingEventArgs e)
{
this.DataSource.LoadingData += this.SortRunCancelLoadingData;
}
private void SortRunCancelLoadingData(object sender, LoadingDataEventArgs e)
{
e.Cancel = true;
this.DataSource.LoadingData -= this.SortRunCancelLoadingData;
}
in Q3 release, the SortRunCancelLoadingData method is never called and a call to server is never made - the sorting works fine until there are changes
if the sort is already applied, and the data is change the sort updates correctly