I'm trying to setup paging for RadGrid and it works fine in some scenarios but there are 3 issues with it:
@ Load the page initially, go to the second page, then go back to the first page; the data is not updated so shows the second page data!
@ Load the page initially, change the page size from 10 to 50. expect: the page should immediately be reloaded with the new page size. actual: no change. generally something wrong with the first page!
@ pdf icon disappears when clicking any page number apart from the first. It appears again when the first page number is clicked but the data has the above issue.
Maybe it's not configured properly (it's generated using my RadGridBuilder class). I have set the below properties:
this.RadGrid.AllowPaging = this.AllowPaging;
this.RadGrid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
private void RadGridNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
this.RadGrid.DataSource = this.DataSource;
}
My Build method is responsible to buld the RadGrid basically:
public RadGrid Build()
{
this.DataSource = GetDataSource();
SetImmediateProperties();
SetMasterTableView();
ConfigureExportSettings();
this.RadGrid.Rebind();
return this.RadGrid;
}
Why do I have the above issues and how to resolve them?
After further investigation, it's clarified that PageIndexChanged event is never raised when the page number 1 is clicked. Not sure why?
Very much appreciated.
@ Load the page initially, go to the second page, then go back to the first page; the data is not updated so shows the second page data!
@ Load the page initially, change the page size from 10 to 50. expect: the page should immediately be reloaded with the new page size. actual: no change. generally something wrong with the first page!
@ pdf icon disappears when clicking any page number apart from the first. It appears again when the first page number is clicked but the data has the above issue.
Maybe it's not configured properly (it's generated using my RadGridBuilder class). I have set the below properties:
this.RadGrid.AllowPaging = this.AllowPaging;
this.RadGrid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
private void RadGridNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
this.RadGrid.DataSource = this.DataSource;
}
My Build method is responsible to buld the RadGrid basically:
public RadGrid Build()
{
this.DataSource = GetDataSource();
SetImmediateProperties();
SetMasterTableView();
ConfigureExportSettings();
this.RadGrid.Rebind();
return this.RadGrid;
}
Why do I have the above issues and how to resolve them?
After further investigation, it's clarified that PageIndexChanged event is never raised when the page number 1 is clicked. Not sure why?
Very much appreciated.