How do you pre-select multiple options in a multi-select by default in an Edit Popup Form?
So, if the grid displays “One, Three” in a column and editoptions is
{multiple: true, size: 3,value: {0: '', 1: 'One', 2: 'Two', 3: 'Three'}}
as defined in ColModel for the grid column. Then the following select markup is rendered:
Which works Great
However, the in the DOM select.selectedIndex is 1, which renders differently in the UI than the other options. And, I really want 1 and 3 selected so that if the user doesn't modify the options and clicks 'Submit' then the options don't change. This way if the click Submit then the options changes from 1,3 to 1, which is undesired behavior.
Is there a way to pre-select both option 1 and 3, so that if the user doesn't modify the options and clicks 'Submit' then the options do not change.
Thanks
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top