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

[Solved] export to ExcelML only selected rows, how?

2 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruce Lam
Top achievements
Rank 1
Bruce Lam asked on 24 Dec 2009, 01:37 AM
protected void RadGrid1_ExcelMLExportRowCreated(object source, GridExportExcelMLRowCreatedArgs e)  
{  
    if (yourCondition && e.RowType == GridExportExcelMLRowType.DataRow)  
        e.Worksheet.Table.Rows.Remove(e.Row);  
}  

but I can't find 'yourCondition' (is selected rows), please help me,
thank you Telerik Team

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Dec 2009, 09:38 AM
Hi,

Take alook at the sample code provided by Telerik to help achieve your scenario:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-export-only-selected-rows.aspx

Thanks,
Shinu
0
Daniel
Telerik team
answered on 24 Dec 2009, 12:28 PM
Hello Shinu and Bruce,

The link is correct, only the page it points to is wrong.
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-export-only-selected-rows.aspx

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Bruce Lam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or