Export Grid When Grid In RTL Mode!

3 posts, 1 answers
  1. Ali Kolahdoozan
    Ali Kolahdoozan avatar
    7 posts
    Member since:
    Feb 2010

    Posted 07 Mar 2010 Link to this post

    Hi


    I Have Problem For Export Grid By Javascript Code . My RadGrid 100% RTL . 

     

     

     <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
            <script language="javascript">  
                var GrdPersons;  
                //  
                function GetGridObject(sender, eventArgs) {  
                    GrdPersons = sender;  
                    GrdPersons.get_masterTableView().hideFilterItem();  
                }  
                //  
                function HideFilter() {  
                    GrdPersons.get_masterTableView().hideFilterItem();  
                }  
                //  
                function ShowFilter() {  
                    GrdPersons.get_masterTableView().showFilterItem();  
                }  
                function ExportToExcel() {  
                    GrdPersons.get_masterTableView().exportToExcel('RadGridExport.xls');  
                }  
                //  
                function ExportToWord() {  
                    GrdPersons.get_masterTableView().exportToWord('RadGridExport.rtf');  
                }  
    </script> 

     

    My RadGrid Name Is : GrdPersons .

    When I Click On Button For Export Shown Loading Panel And Dont Any Other Work

    Please Help Me

  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Mar 2010 Link to this post

    Hi,

    I believe your issue is that you are not able to export the grid  when it is  ajaxified. You need to cancel the ajax when exporting the grid
    as shown below:


    JS:
     function onRequestStart(sender, args) 
       { 
           if(args.get_eventTarget().indexOf("btnExport")>= 0) 
               args.set_enableAjax(false); 
       } 



    Hope this helps.

    Thanks,
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ali Kolahdoozan
    Ali Kolahdoozan avatar
    7 posts
    Member since:
    Feb 2010

    Posted 09 Mar 2010 Link to this post

    Hi Again


    Tnx

    Problem Form  args.set_enableAjax(false);


    Now I Can Export Property
Back to Top