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

Programatic Implementation of Multilevel Grid Export

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick Gohad
Top achievements
Rank 1
Nick Gohad asked on 11 May 2010, 09:33 PM
I am trying to implement Export functionality in Multilevel Grid. I came to know that this is currently not supported in RadGrid.

As a workaround i am trying to get the Multilevel grid data into a Datatable and progrmatically create a RadGrid

and call the export methods on the RadGrid.  To do this i created a Button on webpage and when  the button is clicked i am doing the

following. I took this code from this post
http://www.telerik.com/community/forums/aspnet-ajax/grid/exporting-programatically-created-grid.aspx
This works fine if make a normal call. If i make a ajax call the export is not working. The call is made to server side but after the method is executed the Save dialog box is not showing up. It shows up if i make a non ajax call. I trying to attach the whole project , but it is not allowing me to add Zip files.

Thanks,
Sravan

RadGrid RadGrid1 = new RadGrid(); 
          XmlDataSource xmlSource = new XmlDataSource(); 
          RadGrid1.ID = "RadGrid1"
          this.PlaceHolder1.Controls.Add(RadGrid1); 
          xmlSource.DataFile = @"~/XMLDB.xml"; 
          RadGrid1.DataSource = xmlSource
          RadGrid1.Rebind(); 
          RadGrid1.ExportSettings.OpenInNewWindow = true
          RadGrid1.MasterTableView.ExportToExcel(); 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 May 2010, 08:54 AM
Hello Sravan,

I am trying to implement Export functionality in Multilevel Grid. I came to know that this is currently not supported in RadGrid.

Exporting hierarchical RadGrid is supported for all formats except CSV. Simple demo is attached to this thread.

This works fine if make a normal call. If i make a ajax call the export is not working.
Please examine the following links:
Export from ajaxified grid
Export RadGrid content to Excel/Word/CSV/PDF with Ajax enabled
Exclude controls from ajaxifying

Let me know if you need more information.

Best regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Nick Gohad
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or