So I have a multiselect box loading up on my form, it was created using the registerCList() function. It will create it, initialize it, and finally read in data (refData):
referencesGrid.registerCList(0, [“Option 1”, “Option 2”, “Option 3”]);
referencesGrid.init();
referencesGrid.parse(refData, “json”);
refData = {
rows: [
{ id: 1, data: [“Option 2”] },
]
};
This works fine and ‘Option 2’ is marked in the multiselect box. My question is, how do i format my refData so that ‘Option 3’ is also selected upon loading? I tried a number of ways with no success, ie:
{ id: 1, data: [“Option 2”] },
{ id: 2, data: [“Option 3”] },
with no luck. Also tried:
{ id: 1, data: [“Option 2”, “Option 3”] } and
{ id: 1, data: [“Option 2, Option 3”] }
I’m hoping I’m just overlooking something simple. Thanks!