In this case I have a store with ~200 items in it.
When applied to a normal listview all display.
When applied to a multiselect it only displays enough to fill the specified height. Increasing the height increases the number of visible items.
Anyone have any tips? This component is absolutely fantastic, just need to work through this problem.
Thanks!
John-
Code:
MyApp.CategorySelectorView = Ext.extend(Ext.Panel, {
layout: 'fit',
initComponent: function() {
var dv = [{
items: [{
xtype: 'itemselector',
name: 'itemselector',
fieldLabel: 'ItemSelector',
imagePath: '/images/',
multiselects: [{
width: 250,
height: 250,
store: categorySelectorStore,
displayField: 'categoryname',
valueField: 'id',
autoscroll: true
}, {
width: 250,
height: 250,
//store: someArray (id->value) autoconverts to store
displayField: 'categoryname',
valueField: 'id',
//data: string literal
}]
}]
}];
this.items = dv;
MyApp.CategorySelectorView.superclass.initComponent.call(this);
}
});
Ext.reg('categorySelector', MyApp.CategorySelectorView);
and the listview version
Code:
{
width: 150,
xtype: 'listview',
title: 'List Categories',
width: 250,
height: 250,
store: categorySelectorStore,
displayField: 'categoryname',
valueField: 'id',
autoscroll: true,
"columns": [
{
"dataIndex": "categoryname",
"header": "Name"
}
]
}
Here is an annotated visual
multiselectissue.png