Author Topic: Export Header Cell Styling  (Read 1570 times)

CharlestonGeek

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 8
  • Christopher Hutner
    • View Profile
Export Header Cell Styling
« on: October 01, 2020, 11:53:23 am »
Working with version 7.5.0...
How can I export to excel the 'background-color' set in styleHead on the colModel?

Code: [Select]
...
{ title: "Source", dataIndx: "Source", styleHead: { 'background-color': '#ffffff' } },
{ title: "Source", dataIndx: "Source", styleHead: { 'background-color':'#007cb0' } },
...

however they export into excel with grey background color (bgColor).
Thank you for your assistance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6282
    • View Profile
Re: Export Header Cell Styling
« Reply #1 on: October 01, 2020, 12:46:04 pm »
There is no inbuilt support for export of header styles currently, might be added in upcoming versions.

However you can add styles to header cells by creating js workbook and add styles to header rows or cells manually before export it to Excel.
« Last Edit: October 01, 2020, 12:57:24 pm by paramvir »