Home › Forums › Guriddo jqGrid JS › Help › Grid header height
Hello,
Is there a way to adjust the height of the grid header? I can only finde the property to set up the width of a column.
For example, I have a column header title
Use setLabel method.
Regards
Tony
I used the setLabel method like this:
setLabel(0, “Invoice Number” ,{color:'red', 'text-align':'center','font-size':'15px', 'word-wrap': 'break-word'})
I want to set the text font size big but the whole string can't fit in the column header. Is there a method to set up the header layer height or cell height?
Thanks!
Maggie
I never try, but you can experiment with height in setLabel something like
setLabel(0, “Invoice Number” ,{color:'red', 'text-align':'center','font-size':'15px', 'word-wrap': 'break-word', height:'30px'})
Maggie,
Were you able to get this to work?
Perhaps I am missing something; when I play with the height settings I am able to get a visible change but the text isn't actually wrapping.
Code is
I am not able to get this to work.
Hi
Was anyone able to resolve this – i am also having the same issue
Thanks
Enclose your grid in div -> mydiv
Then after you load the jqGrid css add this
#mydiv table.scroll thead th
I know this post is pretty old but the code above didnt work for me but this worked though:
I have never tried, but It woths trying. Have you ever tried to include \n or in your lables? somethign like:
Quantity\n Previously Shipped
To set the height on
Hi,
I encountered the same problem. But I was lucky enough to find the solution in a certain blog post –>http://2centtech.blogspot.com/2009/12/jqgrid-header-and-cell-value-word-wrap.html)
In summary, the right CSS to set is:
.ui-jqgrid .ui-jqgrid-htable th div {
Great egocks!! it worked fine for me to.. thanks
It works for me to! thank you!
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS