Author Topic: about column head align  (Read 1811 times)

徐雪峰

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 48
    • View Profile
about column head align
« on: October 15, 2020, 08:07:05 am »
I  want the text of column head  align to center,
but the data align to right.
do you know how to do it?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6314
    • View Profile
Re: about column head align
« Reply #1 on: October 15, 2020, 09:02:51 am »

徐雪峰

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: about column head align
« Reply #2 on: October 16, 2020, 06:54:18 am »
 i hope the [金额]  align is center,but the data is align to right.
i have tryed the align property, and i also tryed use the clsHeader property,
but it seems to don't display as my hope.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6314
    • View Profile
Re: about column head align
« Reply #3 on: October 16, 2020, 09:08:13 am »
column.align works correctly as can be verified by adding align: 'center' to Freight column in this example:

https://paramquery.com/pro/demos/autofill

Could you please share a jsfiddle of your code.