ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: 徐雪峰 on October 15, 2020, 08:07:05 am

Title: about column head align
Post by: 徐雪峰 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?
Title: Re: about column head align
Post by: paramvir on October 15, 2020, 09:02:51 am
Please check column.align and column.halign properties

https://paramquery.com/pro/api#option-column-align

https://paramquery.com/pro/api#option-column-halign
Title: Re: about column head align
Post by: 徐雪峰 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.
Title: Re: about column head align
Post by: paramvir 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.