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

Master Pages + RadGrid on Content + RadAjaxManager/RadAjaxPanel/GridAjax + EXport with Default Command Items

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 14 Oct 2010, 05:54 PM
hi,

I have a similar scenario like this example ExportFromContentPageWithAjaxEnabled.zip at http://www.telerik.com/community/code-library/aspnet-ajax/general/export-radgrid-content-to-excel-word-csv-pdf-with-ajax-enabled.aspx

but instead of the asp buttons at Grid's CommandBar, i want to use the default image buttons that RadGrid Generate when i use:

<CommandItemSettings ShowAddNewRecordButton="True" ShowExportToCsvButton="True" 
                ShowExportToExcelButton="True" ShowExportToPdfButton="True" 
                ShowExportToWordButton="True" />

How i can turn off the ajax for this one at ajax manager?

Best
Regards
-Luis

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Oct 2010, 02:27 PM
Hello Luis,

The ID's of the auto-generated buttons are:
  • ExportToExcelButton
  • ExportToWordButton
  • ExportToPdfButton
  • ExportToCsvButton

You can exclude them all this way:
<script type="text/javascript">
   function onRequestStart(sender, args)
   {
       if (args.get_eventTarget().indexOf("ExportTo") >= 0)
           args.set_enableAjax(false);
   }
</script>

Please examine the following topic for more information:
Export from ajaxified grid

Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Luis
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or