PDA

View Full Version : Button Align in tbar in Grid Panel



srautpyaa
16 Jan 2013, 11:57 PM
Dear all,
I want to add button in toolbar of Grid panel on right side. But it is not working. Please help me. Below is my code.

tbar:[{
type:'button',
text: 'Import Task',
align: 'right',
icon:'images/drop-add.gif',
handler : function() {
win1 = Ext.widget('window', {
title: 'Import Task',
closeAction: 'hide',
width: 550,
height: 450,
minHeight: 400,
layout: 'fit',
resizable: true,
modal: true,
items: form
});
win1.show();
Ext.getCmp('action').disable();
}

}]

mitchellsimoens
18 Jan 2013, 1:47 PM
Try


tbar : [
'->',
{
xtype : 'button',
//....
}
]

srautpyaa
21 Jan 2013, 5:29 AM
Thank you very much, It is working..................