telerik - RadGrid export to excel -


I have a radridge that creates columns dynamically based on user input. After the grid population is over, the user has the option to export the excel or word. However, when users want to keep page formatting, no data is being exported. But if the user chooses to ignore paging, then everything works fine.

It seems that if the redridged property "AutoAgrenate column" is set to false, and "Ignoring" is also incorrect, the data is not found

Is this the problem or am I seeing something?

Here are the ways to configure and call exports:

  Private Zero Configuration Port (String Strxport Type) {Switch (Strongtepe Type to Lyore ()) {case "Excel": RadGrid1.ExportSettings.FileName = "RadGridExportToExcel"; break; Case "word": RadGrid1.ExportSettings.FileName = "RadGridExportToWord"; break; } RadGrid1.ExportSettings.IgnorePaging = this.cbxPaging.Checked; RadGrid1.ExportSettings.ExportOnlyData = this.cbxFormat.Checked; } Private Zero btnExcel_Click (Object Sender, EventArgs e) {If (this.UserProcess.SearchResults! = Null & amp;; .UserProcess.SearchResults.Count> 0) {ConfigureReport ("Excel"); RadGrid1.MasterTableView.ExportToExcel (); } Else {this.lblError.Text = AAILocalization.GetLocaleText ("Error: NoResultExport"); }}  

Thanks in advance for help :) Pat

p. s. I have excluded the method which creates columns for the aquarium.

There is not enough information here to provide an exact cause / solution, although a suggestion (in fact An optional solution is always ignoring here is some sample code when the user is exporting:

  Private zeros btnExcel_Click (Object Sender, EventArgs E) {If (This.UserProcess.SearchResults! = Null & amp; .UserProcess.SearchResults.Count> 0) {Configure Report ("Excel"); RadGrid1.MasterTableView.AllowPaging = false; RadGrid1.PageSize = RadGrid1.Items.Count + 1; RadGrid1.MasterTableView.ExportToExcel (); } Else {this.lblError.Text = AAILocalization.GetLocaleText ("Error: NoResultExport"); }}  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -