Heres my code. Am using Ext 2.0 and i have tried the latest release of itemSelector as well as your v2.0.
Code:var testData = [ ['australia','1'], ['india','2'], ['china','3'] ] var test = new Ext.data.Store({ proxy:new Ext.data.MemoryProxy(testData), reader: new Ext.data.ArrayReader({}, [ {name:'country', mapping:'country'}, {name:'id', mapping:'id'} ]) }); test.load(); /************************************ItemSelector**********************************/ var itemSelector = new Ext.ux.ItemSelector({ name : 'Country List', fieldLabel : 'Countries', //store : test, dataFields : ['id', 'country'], fromData : [['1', 'India'], ['2', 'Australia'], ['3', 'China'], ['4', 'Japan'], ['5', 'Brazil']], toData : [['6', 'USA']], msWidth : 100, msHeight : 200, valueField : 'id', displayField : 'country' });
gitey,
Ext.ux.Multiselect/ItemSelector does not support Ext2.0. You will have to use Ext1.1.
awww
anyways...thanks for the fast reply. i really liked the item selector and wanted to use in my application. Now due to deadlines of the project i need to search for an alternative
thanks for the reply
gitey
tjstuart, actually you right, the ComboBox behavior answer for my needs 100%, exept one thing - the look, I like the open style (size="?") property in HTML select, exaclly as you used in Ext.ux.Multiselect.
Can I use this style ComboBox ?
The Ext.ux.Multiselect - is working perfect!PHP Code:
<select name="x" id="x" size="5">
<option value="1" SELECTED>first</option>
<option value="2">second</option>
<option value="3">.</option>
<option value="4">..</option>
<option value="5">...</option>
</select>
mikich,
You could make Multiselect allow only single item selection by setting maxLength to 1 in the config options.
Cheers
Great extension. I am having problem (user error) though. I am setting minLength to 1 and I expect the field to be marked invalid on form submit. Is this something I must implement myself, or do I just have it set up wrong?