Hi,
I have a RadGrid that displays the page numbers and the previous and Next buttions for paging functionality. The paging works when I click on the page number but not when I click on the previous/next buttons. The following is the skeleton of my code. Please suggest a solution to make this work.
It works fine if I take out the rebind() call in the page load event. However I need this to support other functionality.
Thanks
Mahipal
I have a RadGrid that displays the page numbers and the previous and Next buttions for paging functionality. The paging works when I click on the page number but not when I click on the previous/next buttons. The following is the skeleton of my code. Please suggest a solution to make this work.
It works fine if I take out the rebind() call in the page load event. However I need this to support other functionality.
protected void Page_Load(object sender, EventArgs e)
{
cboSelectReport.Attributes.Add("onchange", "DisplayNewReport();");
string sqlString ="declare @startdate datetime; declare @enddate datetime;";
sqlString = sqlString + "set @startdate = '" + dtpStart.SelectedDate.ToString() + "';";
sqlString = sqlString + "set @enddate = '" + dtpEnd.SelectedDate.ToString() + "';";
radgrid.Skin = "Outlook";
ReportSource.SelectCommand = sqlString + ConfigurationManager.AppSettings["sqlcommand6"];
ReportSource.DataBind();
radgrid.Rebind();
}
public void radgrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
radgrid.DataSource = ReportSource;
}
Thanks
Mahipal