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

Export Not working

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 02 Nov 2012, 05:21 PM
Scenario:

Grid in Conditional Update Panel
Within a UserControl
On a SiteFinity Page
Custom Export Buttons within the PagerTemplate.

Events are not firing on the server side as I cannot declaratively add the Event Triggers.
Cannot use script mananger as it's on the SiteFinity Page not in this control

Events fire on the Client Side but do nothing when executed.

Clinet code is straightforward enough but does not error or work

function onClientExcelExportCommand(sender, eventArgs) {

    var tableView = $find("<%= TransactionListGrid.ClientID %>").get_masterTableView();

     tableView.exportToExcel();

}

Help is required.

Many thanks

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 07 Nov 2012, 12:42 PM
Hello Gary,

When you are exporting a grid nested in AjaxPanel you have to explicitly disable its ajax mode in order to export the grid properly. You could take a look at this help article where canceling the ajax request on InitializeRequest event is demonstrated.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Gary
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or