Hi
I am building a RadGrid dynamically, thus:
and then in the Page_Load event I am setting the Ajax to the Grid
This works 100%.
The grid is made up of Parent and Child Rows - I want to DISABLE the Ajax when I am working in the Child Rows.
I think I need to be more specific in defining the AjaxSettings above ie in this line:
I am not sure how to begin to do this. My first thought is to catch the Ajax Begin and End Response events in the Javascript and only pass them on when active in the parent rows of the grid, but I am not sure if this will work?
Some pointers would be much appreciated.
Regards
Simon
I am building a RadGrid dynamically, thus:
protected
void
Page_Init(
object
source, System.EventArgs e)
{
this
.phRadGrid1.Controls.Add(DefineGridStructure());
RadAjaxManager manager =
new
RadAjaxManager();
manager.ID =
"RadAjaxManager1"
;
manager.DefaultLoadingPanelID =
"RadAjaxLoadingPanel1"
;
this
.Page.Form.Controls.Add(manager);
}
and then in the Page_Load event I am setting the Ajax to the Grid
// ajaxify Grid
RadGrid1 = (RadGrid)phRadGrid1.FindControl(
"RadGrid1"
);
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
manager.AjaxSettings.AddAjaxSetting(RadGrid1, RadGrid1);
This works 100%.
The grid is made up of Parent and Child Rows - I want to DISABLE the Ajax when I am working in the Child Rows.
I think I need to be more specific in defining the AjaxSettings above ie in this line:
manager.AjaxSettings.AddAjaxSetting(RadGrid1, RadGrid1);
I am not sure how to begin to do this. My first thought is to catch the Ajax Begin and End Response events in the Javascript and only pass them on when active in the parent rows of the grid, but I am not sure if this will work?
Some pointers would be much appreciated.
Regards
Simon