Export Window not come

3 posts, 0 answers
  1. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 24 Sep 2011 Link to this post

    Hello every one ,

    <telerik:RadToolBar ID="RadToolBar1" runat="server" OnClientButtonClicking="onToolBarClientButtonClicking"
                        OnButtonClick="RadToolBar1_ButtonClick">
                        <Items>
                            <telerik:RadToolBarButton Text="<%$ Resources:FormName, Addnew %>" CommandName="InitInsert"
                                ImageUrl="../../images/AddRecord.gif" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'>
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton Text="<%$ Resources:FormName, Filter %>" CommandName="Filter"
                                ImageUrl="../../images/Filter 3.gif">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton Text="<%$ Resources:FormName, Refresh %>" CommandName="RebindGrid"
                                ImageUrl="../../images/Refresh.gif">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" CommandName="Excel" Text="Export Excel">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" CommandName="Word" Text="Export Word">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" CommandName="PDF" Text="Export PDF">
                            </telerik:RadToolBarButton>                       
                        </Items>
                    </telerik:RadToolBar>


    protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
            {
                string message = e.Item.Text;
                if (e.Item.Text == "Export Excel")
                {
                          RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                    RadGrid1.MasterTableView.ExportToExcel();
                }
                else if (e.Item.Text == "Export Word")
                {
                          RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                    RadGrid1.MasterTableView.ExportToWord();
                }
                else if (e.Item.Text == "Export PDF")
                {
                          RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                    RadGrid1.MasterTableView.ExportToPdf();
                }
            }


    Export Window not come,
    That toolbar is closed ,
    Replay as soon as possible

    Thanks,
    Mohamed.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Sep 2011 Link to this post

    Hello Mohamed,

    I have tried reproducing the issue at my end, but no avail.The exporting worked as expected. If you ajaxified the Grid please make sure that you have disabled the ajax.

    Please take a look into the following help document which discussed the same.
    Export from Ajaxified Grid.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 28 Sep 2011 Link to this post

    Thanks for ur reply ,

    any other way ,
    any other small project code .

    Thanks,
    Mohamed.
Back to Top