Good morning. I have 2 grids that use a RadWindow to do their Insert/Updates. I have them returning and updating properly. The only problem is that I noticed is that when I update one grid, both grids are refreshed by the ajax manager. I'd like to see only one grid refresh at a time.
Below is the AJAX setting to allow the rebinds to happen.
Below is the call to refresh the grids based on type. I'm mostly sending you this so that you can see the AJAX call.
Is there a way to only refresh one of these grids at a time?
Thanks!
Below is the AJAX setting to allow the rebinds to happen.
<
telerik:AjaxSetting
AjaxControlID
=
"RadAjaxManager1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid2"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
Below is the call to refresh the grids based on type. I'm mostly sending you this so that you can see the AJAX call.
function
refreshGrid(args, type) {
if
(type ==
"A"
) {
if
(args == 1) {
radalert(
"Action Updated"
);
}
else
{
radalert(
"Action Added"
);
}
$find(
"<%= RadAjaxManager.GetCurrent(me).ClientID %>"
).ajaxRequest(
"RebindActions"
);
}
else
{
if
(args == 1) {
radalert(
"Record Updated"
);
}
else
{
radalert(
"Record Added"
);
}
$find(
"<%= RadAjaxManager.GetCurrent(me).ClientID %>"
).ajaxRequest(
"RebindRecords"
);
}
}
Is there a way to only refresh one of these grids at a time?
Thanks!