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

Ajaxyfied radgrid export using 'internal' radgrid buttons

1 Answer 52 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hans-Dieter
Top achievements
Rank 1
Hans-Dieter asked on 15 Nov 2012, 04:12 PM
Hi

I'm using an ajaxyfied radgrid and want to use the command buttons the grid offers for export.
But Clicking on one of them does not export it shows the generated output on the page.
What I understood from all reading about this is, I have to disable ajax
for the export something like this:
<script type="text/javascript">
           function RequestStart(sender, args)
           {
               if (args.EventTarget == "Button1")
               {
                   args.EnableAjax = false;
               }
           }
       </script>
On all the examples I've found a button, "Button1", is used to do this. How do I reference the internal buttons of the radgrid to do the same or is there a different way of doing this?
Thanks in advance

Hans-Dieter

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Nov 2012, 05:33 PM
Hello Hans-Dieter,

I would recommend that you examine the following help topic:
Export from Ajaxified Grid

You can see this approach in action on our online demos.

Let me know if you need further assistance.

Best regards,
Daniel
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
Ajax
Asked by
Hans-Dieter
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or