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

Export to PDF when Grid in an UPdatePanel and Tab Control

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Debbie
Top achievements
Rank 1
Debbie asked on 30 Sep 2008, 09:17 PM
I read an old post on the forum that explains what is needed when the RadGrid is contained within an Update Panel in order for the export functionality to work.
(http://www.telerik.com/help/aspnet-ajax/grdexportwithajax.html).

So I added the Triggers to the UpdatePanel but this didn't work since my Grid (and export button) was contained within a tab of a Tab Control

This resulted in error:
A control with ID 'btnExport' could not be found for the trigger in UpdatePanel 'upTabs'.

For a workaround I had to move the Export button outside of the tabcontrol but this isn't the desired behavior.

Any suggestions?

Thanks!
Debbie

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Oct 2008, 06:59 AM
Hi Debbie,

You can use RadAjaxManager or RadAjaxPanel instead. In these two controls you have OnRequestStart event where you can cancel the ajax call conditionally. Please check these examples for more info:
http://demos.telerik.com/aspnet/Prometheus/Grid/Examples/GeneralFeatures/PdfExport/DefaultCS.aspx
http://demos.telerik.com/aspnet/Prometheus/Controls/Examples/Integration/RadUploadInAjaxifiedGrid/DefaultCS.aspx?product=grid


Sincerely yours,
Vlad
the Telerik team

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