ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
about column head align
« previous
next »
Print
Pages: [
1
]
Author
Topic: about column head align (Read 1811 times)
徐雪峰
Pro Enterprise
Newbie
Posts: 48
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?
Logged
paramvir
Administrator
Hero Member
Posts: 6314
Re: about column head align
«
Reply #1 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
Logged
徐雪峰
Pro Enterprise
Newbie
Posts: 48
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.
Logged
paramvir
Administrator
Hero Member
Posts: 6314
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.
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
about column head align