View Full Version : tbar alignment

27 Feb 2009, 3:18 AM
Currently I moved two of my buttons namely (Export and Print Preview) which were attached to my grid to tbar. These two buttons show up on the top of the grid left aligned

I had the luxury of aligning the buttons left or right previously.

Do i have the same features to align the tbar entries to right. By default, they align to left

27 Feb 2009, 3:21 AM
"I had the luxury of aligning the buttons left or right previously."

And what changed?


As shown in the examples?

27 Feb 2009, 3:24 AM
I used buttonAlign:'right'

Do I have something like tbar: 'right'

27 Feb 2009, 3:28 AM
And where is that in the API?

I mean, it's in a user extension I posted, and in a Feature Request I posted, but other than that, you're making up configs you'd like to see.

27 Feb 2009, 3:28 AM
"->" just the same as before. You did say you used it before?

27 Feb 2009, 3:30 AM
Oh, you mean buttonAlign for the Panel then. Not the tbar?

The docs say "The alignment of any buttons added to this panel. Valid values are 'right,' 'left' and 'center' (defaults to 'right')."

27 Feb 2009, 3:34 AM
Sorry for the confusion.

I used only buttons so far with the grid. I used to align hte buttons to right
I want to use tbar instead of buttons.
tbar aligns the items on left.

I am looking for a solutions to align the tbar items to the right

27 Feb 2009, 4:33 AM


27 Feb 2009, 4:42 AM

I used {xtype: 'tbfill'}, // or '->'
infront of othere items I have in my tbar, it aligned all the items in my tbar to right