Ask example codeing of Editor and Select2 (multi-selection) doing predefined select2 ?

Ask example codeing of Editor and Select2 (multi-selection) doing predefined select2 ?

mtrdteditor88mtrdteditor88 Posts: 2Questions: 1Answers: 0

Is there any example for Editor and Select2 showing pre-selected multi items ?
as the image shown
....

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    I haven't got an example, and I'm not too familiar with Select2, but you should be able to set the value in the initCreate, either with field().set() or like this example here, which is setting a default value of "London" for new records in the office field.

    Colin

  • mtrdteditor88mtrdteditor88 Posts: 2Questions: 1Answers: 0

    Hi colin, thanks for reply, However, is there any Editor with field: Select2 for multi selection example ? Actually I need showing pre-selected multi items example ...

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    This thread may help - it seems to be asking the same question with a "Eureka" at the end!

    Colin

Sign In or Register to comment.