PDA

View Full Version : Grid multi-line header



tfu
24 Mar 2011, 8:26 AM
In one of the columns in my grid, I need to split the header into two lines. I found that the ColumnConfig setHeader method takes a string with HTML markup, which is great. I was able to insert a <br/> into the header string and caused a line break in the header. The header of that column indeed was split into two lines. However, there were two problems:

There was a horizontal line drawn across all headers in the grid.
The first row of the grid was rendered too high, overlapping a part of the header. It seems the rendering code did not consider the fact that the header was taller than usual.
My question is: what is the correct way to display a grid header in two lines.

Any help for this question will be greatly appreciated.