This is a migrated thread and some comments may be shown as answers.

terrlist export for selected rows

4 Answers 76 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sayantan
Top achievements
Rank 1
Sayantan asked on 08 Jan 2013, 05:22 AM
Hi,
I is there any option to export selected rows from radtreelist to pdf?

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 08 Jan 2013, 08:49 AM
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.
0
Sayantan
Top achievements
Rank 1
answered on 09 Jan 2013, 07:45 AM
Thanks it Works!!
0
Sayantan
Top achievements
Rank 1
answered on 09 Jan 2013, 07:58 AM
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      |
0
Princy
Top achievements
Rank 2
answered on 09 Jan 2013, 10:18 AM
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.
Tags
TreeList
Asked by
Sayantan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Sayantan
Top achievements
Rank 1
Share this question
or