View Full Version : multiselect with MVC

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



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


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?

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.