Hi again,
I have 2 RadGrids - RadGrid1 and RadGrid2.
For RadGrid1 I have EnablePostbackOnRowClick = true and have handler functions for OnSelectedIndexChanged event and the OnRowSelect event. The first one is a function in CodeBehind file that gets datakey values of RadGrid1 -> Executes a parameterized SP -> Equates RadGrid2.DataSource to the DataTable returned -> calls RadGrid2.Rebind().
The setup works fine and I am able to populate RadGrid2 based on the row selection in RadGrid1. But, when I debug the application and check for the value of Page.IsPostBack, I get confused.
First time when application loads, Page.IsPostBack is false. When I select a row, value of Page.IsPostBack becomes true. But, when I keep on selecting rows again and again, then after 2-3 times, Page.IsPostBack value becomes false again. And this keeps happening periodically. Due to this inconsistency, the OnNeedDataSource handler function of both the grids are called. Due to this, I am not able to restrict my logic using IsPostback attribute.
Please help.
Regards,
Anup
I have 2 RadGrids - RadGrid1 and RadGrid2.
For RadGrid1 I have EnablePostbackOnRowClick = true and have handler functions for OnSelectedIndexChanged event and the OnRowSelect event. The first one is a function in CodeBehind file that gets datakey values of RadGrid1 -> Executes a parameterized SP -> Equates RadGrid2.DataSource to the DataTable returned -> calls RadGrid2.Rebind().
The setup works fine and I am able to populate RadGrid2 based on the row selection in RadGrid1. But, when I debug the application and check for the value of Page.IsPostBack, I get confused.
First time when application loads, Page.IsPostBack is false. When I select a row, value of Page.IsPostBack becomes true. But, when I keep on selecting rows again and again, then after 2-3 times, Page.IsPostBack value becomes false again. And this keeps happening periodically. Due to this inconsistency, the OnNeedDataSource handler function of both the grids are called. Due to this, I am not able to restrict my logic using IsPostback attribute.
Please help.
Regards,
Anup