I have RadGrid with a quit extended NestedView where I show the details if the Item in a Html table. The Html is styled and there is photos in the table.
Now I would like to export only this NestedViewTemplate from this one Grid Item when the user click on a button inside the NestedViewTemplate.
Is this possible?
I have tried modify this sample:
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-export-to-excel-biff-format-hierarchy-and-selected-items.aspx#2816333
By adding a NestedViewTemplate an expand those in the Prerender event. But first of I can't it to print the NestedViewTemplate and the export contains the headers.
Could some one point me in the right direction? Thanks :-)
Anders Pedersen
Now I would like to export only this NestedViewTemplate from this one Grid Item when the user click on a button inside the NestedViewTemplate.
Is this possible?
I have tried modify this sample:
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-export-to-excel-biff-format-hierarchy-and-selected-items.aspx#2816333
By adding a NestedViewTemplate an expand those in the Prerender event. But first of I can't it to print the NestedViewTemplate and the export contains the headers.
Could some one point me in the right direction? Thanks :-)
bool isExport = false;protected void Button1_Click(object sender, EventArgs e){ Session["SelectedItems"] = RadGrid1.SelectedItems; isExport = true; RadGrid1.ExportSettings.IgnorePaging = true; RadGrid1.ExportSettings.UseItemStyles = true; RadGrid1.ExportSettings.ExportOnlyData = true; RadGrid1.MasterTableView.ExportToExcel();}protected void RadGrid1_PreRender(object sender, EventArgs e){ if (isExport) { foreach (GridDataItem item in RadGrid1.MasterTableView.Items) { item.Expanded = true; } }}Anders Pedersen