Ajaxyfied radgrid export using 'internal' radgrid buttons

2 posts, 0 answers
  1. Hans-Dieter
    Hans-Dieter avatar
    1 posts
    Member since:
    Sep 2012

    Posted 15 Nov 2012 Link to this post

    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
  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 19 Nov 2012 Link to this post

    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.
Back to Top