Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,
I've the latest version of syncfusion and text wrapping is not applied after exporting excel file.

ExcelExportProperties exportProperties = new ExcelExportProperties();

List ExportColumns = new List();


ExcelTheme Theme = new ExcelTheme();

ExcelStyle recordStyle = new ExcelStyle()

{

    FontSize = 8,

    Bold = false,

    WrapText = true,

    VAlign = ExcelVerticalAlign.Top

};

ExcelStyle headerStyle = new ExcelStyle()

{

    FontSize = 10,

    Bold = true,

};

Theme.Record = recordStyle;

Theme.Header = headerStyle;

exportProperties.Theme = Theme;


ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.Id), TextAlign = TextAlign.Left, Width = "95", HeaderText = "ID"});

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.TaskDescriptionSubject), TextAlign = TextAlign.Left, Width = "190", AutoFit = true, HeaderText = "TASK SUBJECT" });

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.Description), TextAlign = TextAlign.Left, Width = "480", AutoFit = true, HeaderText = "DESCRIPTION" });

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.UpcomingDate),Format= "MM/dd/yy", TextAlign = TextAlign.Center, Width = "100", HeaderTextAlign = TextAlign.Left, HeaderText = "DUE DATE" });

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.Initiator), HeaderText = "INITIATOR" });

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.PersonResp), HeaderText = "PERSON RESPONSIBLE" });

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.DateCompleted), Format = "MM/dd/yy", TextAlign = TextAlign.Center, HeaderTextAlign = TextAlign.Left, Width = "90", HeaderText = "LAST DATE COMPLETED" });

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.Frequency), TextAlign = TextAlign.Center, HeaderTextAlign = TextAlign.Left, Width = "110", HeaderText = "FREQUENCY" });

ExportColumns.Add(new GridColumn() { Field= nameof(TasksRecTasksViewModel.LatestGraphValue), HeaderText = "LATEST VALUE" });


exportProperties.Columns = ExportColumns;