Results 1 to 3 of 3

Thread: Pre render some fields in the DUALLISTFIELD on the other side

  1. #1

    Default Pre render some fields in the DUALLISTFIELD on the other side

    Hello,

    I have a duallistfield which has 9 fields. Now what i want is that, whenever a user loads my page 5 of those 9 fields should automatically be populated on the listfield giving user the choice to choose the remaining 4 as they wish. can someone please let me know how do we do it?

    thanks in advance.

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Location
    Flanders
    Posts
    45

    Default

    Do you mean you have 9 values in the DualListField and you want 5 of them to be pre-selected ?
    In that case you use the stores of to- and fromlist to add or remove models.

    Code:
    dualList.getToList().getStore().add(model);
    dualList.getFromList().getStore().remove(model);

  3. #3

    Default

    thanks ..got it...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •