Hi Isomorphic,
I'm experiencing a very long delay when trying to open the picklist of a multi-select item when the value map contains few thousand entries and all items are selected.
I am wondering whether there is something you can improve or am I doing something wrong?
Here is a simple code snippet to illustrate the problem:
Just run this code and try to open the pick-list, you will notice it takes 5+ seconds to open.
Seen with the latest SC build: v12.1p_2021-05-22
I'm experiencing a very long delay when trying to open the picklist of a multi-select item when the value map contains few thousand entries and all items are selected.
I am wondering whether there is something you can improve or am I doing something wrong?
Here is a simple code snippet to illustrate the problem:
Code:
var form = isc.DynamicForm.create({ ID:"exampleForm", width:450, wrapItemTitles: false, fields: [ { type:"select", multiple:true }, ] }); var bigValueMap = {}; var value = []; for (var i=1; i<2000; i++) { bigValueMap[i] = "option #" + i; value.add(i); }; form.getField(0).setValueMap(bigValueMap); form.getField(0).setValue(value);
Seen with the latest SC build: v12.1p_2021-05-22
Comment