View Full Version : toolbar grouping?

4 Nov 2009, 4:54 AM

if you look to the screenshot the toolbar doesn't look nice.

Is there a way to group, like putting them in containers? i would like to have the combos left aligned and the buttons right aligned.
I tried to play with the tbfill but doesn't fit the needs without complicate calculations.


4 Nov 2009, 5:02 AM
You can only use one tbfill in a toolbar, so you should use it after the fields and before the buttons.

ps. Your toolbar looks weird. Are you sure it's not affected by any of your custom css?

4 Nov 2009, 6:03 AM
Hi Condor,

i use it exact this way, its like this:

tbar: [

it's a modified version of greyExtended, it doesn't look such bad here.
Maybe this screenshot shows it better

4 Nov 2009, 6:06 AM
Don't forget that a Toolbar is a Container, and you can configure it to use any layout

By default, it uses a custom layout which is based around two internal <tables>, one for left aligned Buttons and one for right aligned.

But it can use any layout manager - including a custom one that you write.

4 Nov 2009, 6:51 AM
Hi Animal,

indeed the toolbar is rendered in 2 td's (left/right)
My problem is that they both contain one table with the items. If i could use fixed width for the items, the align should be done correct. But then i get problems with localized labels where i don't know the exact width. Also the buttons look strange after applying a fixed width - icon moves to middle.
I still try to adjust it.