terrlist export for selected rows

5 posts, 1 answers
  1. Sayantan
    Sayantan avatar
    5 posts
    Member since:
    Nov 2012

    Posted 07 Jan 2013 Link to this post

    Hi,
    I is there any option to export selected rows from radtreelist to pdf?
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Jan 2013 Link to this post

    Hi,

    Try the following code snippet to achieve your scenario.

    C#:
    protected void RadButton1_Click(object sender, System.EventArgs e)
    {
        foreach (TreeListDataItem item in RadTreeList1.Items)
        {
            if (item.Selected == false)
            {
                item.Visible = false;
            }
        }
        RadTreeList1.ExportSettings.OpenInNewWindow = true;
        RadTreeList1.ExportToPdf();
    }

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sayantan
    Sayantan avatar
    5 posts
    Member since:
    Nov 2012

    Posted 09 Jan 2013 Link to this post

    Thanks it Works!!
  5. Sayantan
    Sayantan avatar
    5 posts
    Member since:
    Nov 2012

    Posted 09 Jan 2013 Link to this post

    How can I use GridLines(Vertical and horizontal lines for each row) in the report exported to pdf.
    e.g.
    | AccountName  |  Amount|
    | Capital Account | 100000 
    |  
    | Captial Subsidy | 5000      |
    | GeneralReserve| 5000      |
  6. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Jan 2013 Link to this post

    Hi,

    Try the following code snippet to add border to the exported pdf file.

    ASPX:
    <ExportSettings>
         <Pdf ItemStyle-BorderColor="Black" ItemStyle-BorderWidth="2px">
         </Pdf>
    </ExportSettings>

    Hope this helps.

    Regards,
    Princy.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017