Export RadGrid to Excel & PDF

5 posts, 0 answers
  1. $uren
    $uren avatar
    20 posts
    Member since:
    Apr 2011

    Posted 04 Apr 2011 Link to this post

    Hi....

    I want to Export the RadGrid datas to pdf .... But the problem is "Say if my grid contain value of 10 and if i set the page size to 5... only the visible 5 data only generated as pdf, but i want the second page value too(remaining 5 data)... could any one help with this thing.... please

    Thanks in advance..

    Regards
    Suren
  2. Daniel
    Admin
    Daniel avatar
    4945 posts

    Posted 04 Apr 2011 Link to this post

    Hello Suren,

    Please examine the following link:
    Export overview

    <ExportSettings IgnorePaging="true" ...>
    </ExportSettings>

    Best regards,
    Daniel
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. $uren
    $uren avatar
    20 posts
    Member since:
    Apr 2011

    Posted 04 Apr 2011 Link to this post

    IgnorePaging="true" is also not working....

    Can u help in export to excel & pdf through a dataset generated in runtime...

    this was what i tried...

     protected void Button1_Click(object sender, EventArgs e)
        {
            DataGrid dg = new DataGrid();
            DataSet ds = new DataSet();
            class1 cs = new class1();
            cs.Temp = st;
            ds = cs.DS();
            dg.DataSource = ds;
            dg.ExportSettings.ExportOnlyData = true;          #
            dg.ExportSettings.IgnorePaging = true;         #
            dg.ExportSettings.OpenInNewWindow = true;    #
            dg.MasterTableView.ExportToExcel();          #

        }

     

    #   Error  'System.Web.UI.WebControls.DataGrid' does not contain a definition for 'ExportSettings' and no extension method 'ExportSettings' accepting a first argument of type 'System.Web.UI.WebControls.DataGrid' could be found (are you missing a using directive or an assembly reference?)  

  5. Daniel
    Admin
    Daniel avatar
    4945 posts

    Posted 04 Apr 2011 Link to this post

    Hello Suren,

    Please try to replace DataGrid with RadGrid. We do not have a control named DataGrid.

    Regards,
    Daniel
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. $uren
    $uren avatar
    20 posts
    Member since:
    Apr 2011

    Posted 04 Apr 2011 Link to this post

    Its Working thanks a lot...
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017