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

[Solved] export in ajaxified grid

3 Answers 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lee Malo
Top achievements
Rank 1
Lee Malo asked on 01 Feb 2010, 01:56 AM
I have a export button in the command template of a radgrid. I got it working by adding the postback function programmatically everything works great, unless the results in the grid are filtered, then it does nothing. Any suggestions on where to look would be greatly appreciated.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Feb 2010, 08:56 AM
Hello Lee,

I recommend you examine the following links:
Export from ajaxified grid
Export RadGrid content to Excel/Word/CSV/PDF with Ajax enabled
Exclude controls from ajaxifying

Let us know if you need more information.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Lee Malo
Top achievements
Rank 1
answered on 01 Feb 2010, 05:40 PM
I followed those samples and as I said it works perfectly unless you filtered the results, then page takes forever to load but instead of asking to save or open like normal it loads without any of my controls in the command template and is really slow until i reload
0
Daniel
Telerik team
answered on 01 Feb 2010, 06:25 PM
Hello Lee,

I would appreciate it if you could provide some information about the way you disable AJAX in your project. You shouldn't have any problems if you cancel the asynchronous request in the onRequestStart handler:
<script type="text/javascript">
   function onRequestStart(sender, args)
   {
       if (args.get_eventTarget().indexOf("btnExport") >= 0)
           args.set_enableAjax(false);
   }
</script>

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Lee Malo
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Lee Malo
Top achievements
Rank 1
Share this question
or