Greetings,
I have a RadGrid, RadAjaxManager, RadToolbar and RadHtmlChart present on a page. The RadAjaxManager is configured like so (the ControlIDs are obviously named):
I am trying to update the chart when firing a grid-based custom command from javascript like so:
Basically, at the time of partial postback, the grid requests its data source, but the chart doesn't. The chart only requests its data source when the page initially loads. Perhaps I'm missing something obvious. I greatly appreciate any suggestions.
I have a RadGrid, RadAjaxManager, RadToolbar and RadHtmlChart present on a page. The RadAjaxManager is configured like so (the ControlIDs are obviously named):
<
telerik:RadAjaxManager
runat
=
"server"
ID
=
"MainAjaxManager"
DefaultLoadingPanelID
=
"MainLoadingPanel"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"SurveyGrid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"SurveyChart"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"SurveyGrid"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
<
ClientEvents
OnRequestStart
=
"onRequestStart"
OnResponseEnd
=
"onResponseEnd"
/>
</
telerik:RadAjaxManager
>
I am trying to update the chart when firing a grid-based custom command from javascript like so:
function
onToolBarButtonClicking(sender, e) {
switch
(e.get_item().get_value()) {
case
'DataSave'
:
if
(isInputValid() ==
true
) {
var
grd = $find(
'<%= SurveyGrid.ClientID %>'
).get_masterTableView();
grd.fireCommand(
'UpdateEdited'
,
''
);
}
break
;
case
'NavCancel'
:
var
grd = $find(
'<%= SurveyGrid.ClientID %>'
).get_masterTableView();
grd.fireCommand(
'CancelAll'
,
''
);
break
;
default
:
break
;
}
}
Basically, at the time of partial postback, the grid requests its data source, but the chart doesn't. The chart only requests its data source when the page initially loads. Perhaps I'm missing something obvious. I greatly appreciate any suggestions.