1

use Html.Raw in kendo grid using .Encode(false) in column. But then export to excel not remove html tag.

@(Html.Kendo()
      .Grid<SuggestionsJsonModel>()
      .Name("Grid")
      .Columns(columns =>
      {
          columns.Bound(p => p.Suggestion).Title("Title").Encoded(false);
      })

result: view

.Excel(excel => excel.FileName("SuggestionReport.xlsx")
          .Filterable(true)
          .ProxyURL(Url.Action("ExcelExportSave", "SuggestionManagement"))
          .AllPages(true))
      .ToolBar(tb => tb.Excel()
          .Text("Excel Export"))

Problem in Export Excel: view

Sadra Babaei
  • 29
  • 1
  • 1
  • 7

0 Answers0