I'm using a RadGrid within a RajAjaxManager.
On a specific LinkButton, I need to export the content of the grid to CSV.
So I need to disable Ajax to allow export works. I'm doing this :
All of this works fine ! BUT :
All other next requests doesn't works, because no more ajax is running :( So all actions like autopostback on controls within content panel are not invoked...
What am I doing wrong ?
Thanks for help !
On a specific LinkButton, I need to export the content of the grid to CSV.
So I need to disable Ajax to allow export works. I'm doing this :
<
script type="text/javascript">
function mngRequestStartedEAE(ajaxManager, eventArgs) {
if (eventArgs.EventTarget.indexOf("exportCsv") != -1) {
eventArgs.EnableAjax =
false;
}
}
</
script>
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStartedEAE" >
<AjaxSettings> <telerik:AjaxSetting AjaxControlID="content"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="content" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="10" BackColor="#ffffff" CssClass="ajax_loader"> </telerik:RadAjaxLoadingPanel> <asp:Panel ID="content" runat="server" CssClass="MaxW">
<!-- some other controls -->
<asp:LinkButton ID="exportCsv" runat="server" OnClick="exportCsv_Click" Text="Exporter"></asp:LinkButton> <!-- grid declaration ... --></asp:Panel>All of this works fine ! BUT :
All other next requests doesn't works, because no more ajax is running :( So all actions like autopostback on controls within content panel are not invoked...
What am I doing wrong ?
Thanks for help !