Hi,
I have a RadComboBox and 2 RadGrids - RadGrid1 and RadGrid2.
I have the following path of execution for populating RadGrid1 :
OnPreRender of RadComboBox -> If this is not a PostBoack, Do
[ Populate RadComboBox -> Set a default value in it -> Pass that value to execute a stored procedure -> Equate the returned DataTable to RadGrid1.DataSource and call RadGrid1.Rebind() ]
In this way, I get the populated RadGrid1.
RadGrid2 gets populated by the following flow :
OnSelectIndexChanged on RadGrid1 -> [Get some DataKeyValue -> Pass it to an SP and execute it -> Equate the returned DataTable to RadGrid2.DataSource and call RadGrid2.Rebind() ]
Note, I haven't set any OnNeedDataSource event handler function for the above two grids. Alogwith this, I have customized my RadGrid1's filter menu items as described in one of the telerik demos. I have used OnFilterMenuShowing and OnClientShowing events of the RadGrid1 to do this. Also, I have a Default Filter set on RadGrid1 which only displays the records that are having blank as the column value.
Now the problem arises, when I try to select No Filter for the same column in RadGrid1, a postback happens and the grid doesnot populates. Its probably because, when the above OnPreRender of ComboBox is called, RadGrid1 cannot get rebind because the logic is enclosed within a check for IsPostback flag. And also, I am not having the OnNeedDataSource event handler for the same. Reason for this is, everytime there is a postback, RadGrid1 is getting rebinded and as a large number(1000+) of records are being returned from the stored procedure, it slows down the application.
Is there a way to achieve this? Can we check the control id that has raised the PostBack event?
Please help.
Regards,
Anup
I have a RadComboBox and 2 RadGrids - RadGrid1 and RadGrid2.
I have the following path of execution for populating RadGrid1 :
OnPreRender of RadComboBox -> If this is not a PostBoack, Do
[ Populate RadComboBox -> Set a default value in it -> Pass that value to execute a stored procedure -> Equate the returned DataTable to RadGrid1.DataSource and call RadGrid1.Rebind() ]
In this way, I get the populated RadGrid1.
RadGrid2 gets populated by the following flow :
OnSelectIndexChanged on RadGrid1 -> [Get some DataKeyValue -> Pass it to an SP and execute it -> Equate the returned DataTable to RadGrid2.DataSource and call RadGrid2.Rebind() ]
Note, I haven't set any OnNeedDataSource event handler function for the above two grids. Alogwith this, I have customized my RadGrid1's filter menu items as described in one of the telerik demos. I have used OnFilterMenuShowing and OnClientShowing events of the RadGrid1 to do this. Also, I have a Default Filter set on RadGrid1 which only displays the records that are having blank as the column value.
Now the problem arises, when I try to select No Filter for the same column in RadGrid1, a postback happens and the grid doesnot populates. Its probably because, when the above OnPreRender of ComboBox is called, RadGrid1 cannot get rebind because the logic is enclosed within a check for IsPostback flag. And also, I am not having the OnNeedDataSource event handler for the same. Reason for this is, everytime there is a postback, RadGrid1 is getting rebinded and as a large number(1000+) of records are being returned from the stored procedure, it slows down the application.
Is there a way to achieve this? Can we check the control id that has raised the PostBack event?
Please help.
Regards,
Anup