javascript - ExtJs tagfield sort visible value -
maybe can me sort selected items. default new selected added end of array.
i show them alphabetically, possible do?
i tried set listeners on change event called after selected item shown on component.
any help, or sugestion?
i did today!
add listener on select, , sort them there:
... "listeners": { "select": function(combo, records){ records.sort(function(a, b){ //change value text or whatever field want sort on return a.data.value - b.data.value; }); combo.setvalue(); combo.setvalue(records); } }, ... cheers
Comments
Post a Comment