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

hierarchial grid to excel

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erin
Top achievements
Rank 1
Erin asked on 22 Jan 2014, 12:14 PM
Hi
 i want to export a hierarchial grid to excel. But the child rows are not visible. I have tried expanding the child grid on export, but its not working. Any idea?

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 22 Jan 2014, 12:19 PM
Hi Erin,

Please try the following code snippet, if this doesn't help please provide your full code snippet:

C#:
protected void myRadGrid_ItemCommand(object sender, GridCommandEventArgs e)
{
  if(e.CommandName == RadGrid.ExportToExcelCommandName)
   RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;
}

Thanks,
Princy
Tags
Grid
Asked by
Erin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or