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
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(); |