This is a migrated thread and some comments may be shown as answers.

[Solved] RadGrid Export + Semi Ajax

2 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guido Tapia
Top achievements
Rank 1
Guido Tapia asked on 01 Apr 2009, 11:54 PM
Hi,  I have a grid that I want to export to excel.  The export is initiated by a dropdown list (select export format).  This drop downlist is not Ajaxified, however it is an UpdatedControl of another control (the run report button).

I want to enable/dissable this drop down list and hence needs to be updated by an ajaxified control.  However when the drop down list fires its post back it is not an ajax request.

However, the export does not work.

If I remove the dropdownlist from the UpdatedControl of the afax manager then it expo0rts correctly.

Any help would be greatly appreciated.

Thanks

Guido

2 Answers, 1 is accepted

Sort by
0
Guido Tapia
Top achievements
Rank 1
answered on 02 Apr 2009, 12:24 AM
I was able to find a work around for this.

Simply ajaxify this control ie:

<

 

telerik:AjaxSetting AjaxControlID="ddlExport"><UpdatedControls><telerik:AjaxUpdatedControl ControlID="ddlExport" /></UpdatedControls></telerik:AjaxSetting>

 



This will then fire the OnRequest start event.

You can then dissable ajax as described here:
http://www.telerik.com/help/aspnet/grid/grdexportwithajax.html

I still think this is a bug as the control was not initially ajaxified and I am now ajaxifyint it simply to dissable ajax.

Thanks

Gudo
0
Daniel
Telerik team
answered on 06 Apr 2009, 03:31 PM
Hello Guido,

Even if your DropDownList is not an initiator, it will still perform AJAX (not a postback as required to export). Note that when it's set as UpdatedControl it will actually be wrapped in UpdatePanel.

Nevertheless, we are glad that you managed to overcome the problem on your own. Your approach is correct.

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Guido Tapia
Top achievements
Rank 1
Answers by
Guido Tapia
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or