PDA

View Full Version : Run layout Failed



piyushbhati
2 Jan 2014, 10:17 PM
I try to add gridpanel into modal Window panel. but i got error "layout run failed". If i add textfield to the ext window it works fine but if i add gridpanel it's not working.. can anyone help me out.


Ext.define('DHTApp.view.configuration.EditCategory', {
extend : 'Ext.window.Window',
alias : 'widget.editcategory',

requires : ['Ext.grid.*', 'Ext.grid.plugin.DragDrop'],

modal : true,
title : 'Edit Category',
closable : true,
resizable : true,
bodyPadding : 10,
fixed : true,
layout : 'fit',

items : [{
xtype : 'grid',
layout :'fit',
title : 'Simpsons',
columns : [{
text : 'Name',
dataIndex : 'name'
}, {
text : 'Email',
dataIndex : 'email',
flex : 1
}, {
text : 'Phone',
dataIndex : 'phone'
}]
}]
});

thnx in advance.

suzuki1100nz
3 Jan 2014, 10:54 AM
Hi -What ExtJS version are you using?

Works fine in 4.2.1 with some height config
Fiddle here - https://fiddle.sencha.com/#fiddle/2f7