PDA

View Full Version : multiselect with MVC



alane
1 Oct 2012, 2:45 PM
I'm having trouble getting a multiselect to render properly in a MVC setting as a pre-set item inside a view.


Ext.define('MyApp.view.MyViewport', {
extend: 'Ext.container.Viewport',

initComponent: function() {
var me = this;

Ext.applyIf(me, {
items: [
{
xtype: 'multiselect',
itemId: 'multiselect',
width: 110
}
]
});

me.callParent(arguments);
}

});

This gives me a blank screen and the error:
"
TypeError: h is undefined
[Break On This Error]

...",alias:"series.bar",column:false,style:{},gutter:38.2,groupGutter:38.2,xPadding...

"
Other xtypes show up without difficulty in the same viewport. Is multiselect not included in ext-all.js? Do I need to include something special to allow it to render correctly?

skirtle
1 Oct 2012, 3:35 PM
I suggest using ext-all-dev rather than ext-all so that you get more meaningful error messages.

As you suggested, the MultiSelect component is not part of ext-all. You'll find it under examples/ux/form.