PDA

View Full Version : Can I left justify some text and right justify some other text in the title of a Grid



Syed Huda
4 Feb 2011, 3:16 PM
Can I left justify some text and right justify some other text in the title of a Grid?


var grid = new Ext.grid.EditorGridPanel({
...
title: 'Grid Title',
...
})

I want to add another title and have it right justified, see image below, the red area is where I want to add text.
24579
Please help.

nicholasnet
4 Feb 2011, 8:36 PM
In order to achieve this you have to change bodyCfg of EditorGridPanel.

valititi
5 Feb 2011, 4:45 AM
generally, the most of Ext fields are generated as html (because, finally the browser must understand it)...
so, try to put a html table, in your title, with 2 columns, one aligned left, another alignes right
<table width="100%"><tr><td align="left">Atext</td><td align="right"></td>AnotherText</tr></table>
may this help ?