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

[Solved] Grid Export - MasterTableView only?

1 Answer 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 21 May 2008, 01:29 PM
I have a grid with a mastertableview, when I use the export fuctionality it seems to only export the mastertableview only.

Under my mastertableview is a nestedvew with another grid with detailview and detail tables.  Is there anyway to get to that information to generate an excel export?

I tried using ExcelMLExportRowCreated   event but it wouldn't drill down into the grid for me to grab the rows from the nestedview or grid within the nested view.
Thanks

S~

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 May 2008, 07:27 AM
Hi Steve,

Try the following code snippet to export the MasterTable aswell as DetailTable of a RadGrid.

CS:
 protected void Button1_Click(object sender, EventArgs e) 
    { 
        RadGrid1.MasterTableView.HierarchyDefaultExpanded = true
        RadGrid1.ExportSettings.OpenInNewWindow = true
        RadGrid1.MasterTableView.ExportToExcel(); 
   } 


Thanks
Shinu.
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or