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

radGrid export Unicode problem

0 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sofiene
Top achievements
Rank 1
Sofiene asked on 10 May 2012, 10:00 AM

hi, 
when I export my radGrid which contain French character in column title , titles appears in chine character in excel result . 

This is my export config and event code .

Thank‚Äôs 



public void ConfigureExport()
  {
      try
      {
 
          
          GridPJ.ExportSettings.FileName = getExcelFileName((CImport)Session["CImport"]);
          GridPJ.ExportSettings.IgnorePaging = true;
          GridPJ.ExportSettings.OpenInNewWindow = true;
           
          GridPJ.ExportSettings.ExportOnlyData = true;
          GridPJ.DataBind();
          foreach (GridColumn col in GridPJ.MasterTableView.RenderColumns)
          {
              col.Visible = true;
              col.Display = true;
 
          }
 
          GridPJ.Rebind();
      }
      catch (Exception e)
      {
 
      }
 
 
 
  }
 
  protected void GridPJ_ItemCommand(object source, GridCommandEventArgs e)
  {
      if (e.CommandName == Telerik.Web.UI.RadGrid.ExportToExcelCommandName ||
         e.CommandName == Telerik.Web.UI.RadGrid.ExportToPdfCommandName ||
         e.CommandName == Telerik.Web.UI.RadGrid.ExportToCsvCommandName)
              {
                  ConfigureExport();               
              }
   }

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Sofiene
Top achievements
Rank 1
Share this question
or