-
30 Oct 2008 11:44 PM #1
displaying grid header in two lines
displaying grid header in two lines
Hi,
How to display grid column header in two lines instead of single line.
Thanks,
Bhaskar.
-
31 Oct 2008 12:37 AM #2
Tried putting <br/> in your header?
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
31 Oct 2008 12:41 AM #3
Thnks, Already i have tried putting <br/> , but im getting white color row on the top of the entire heading row because of putting <br/>.
-
31 Oct 2008 12:43 AM #4
It works fine for me. I just changed the array-grid.js example to have
And it showed it across 2 lines.Code:{header: "Last<br/>Updated", width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
31 Oct 2008 12:51 AM #5
I have attached , what i am getting the headers error.
-
31 Oct 2008 1:18 AM #6
I can JUUUST make out from that tiny, blurry image that you are doing something non-standard.
It's up to you really, it's just HTML, so if you want a line break, put a line break in.
We need to see your code to see what you are doing.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
29 Aug 2012 12:53 PM #7
Right aligned
Right aligned
The <br> workaround works fine (I'm using Extjs 4.0)
The header just looks strange if the column is right aligned and sorting is used. Do you have a solution for this?


Reply With Quote