1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    1
    Vote Rating
    0
    Pappie is on a distinguished road

      0  

    Default Unanswered: Multi select options in sencha 2

    Unanswered: Multi select options in sencha 2


    Hi everyone,

    I have used selectfield for dropdown. but i need to select multiple options.

    Can any one help to select multiple options in sencha 2?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,617
    Vote Rating
    435
    Answers
    3102
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Looks like the out of the box Select field doesn't support multi select. The problem having multi select on the Select field is if you use it on a tablet or desktop, it is the list which can support multi select but if you use it on a phone, it's a picker which isn't multi select so you can't rely on Select being multi select.

    I created an extension that did this for Sencha Touch 1 that I gave the developer the option to choose between a list, dataview and picker. Since I gave the developer the choice, I could then allow multi select on the list and dataview. The problem with this is now the web app won't be true to it's native cousins as on a phone the picker should be used.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    74
    Vote Rating
    3
    shaneavery is on a distinguished road

      0  

    Default


    Hello,

    I am trying to use the muti-select extension you designed for Sencha Touch 1 with Sencha Touch 2 PR3 and have had some success getting it updated. My app is designed for a tablet, so I am interested in the "list" mode of your extension.

    One issue: line 207 uses a deprecated property - fieldEl. When debugging, the console reports below from line 40862 of sencha-touch-all-debug.js:

    "[DEPRECATE][Ext.form.ux.touch.MultiSelect#undefined] 'fieldEl' is deprecated, please use getInput() to get an instance of Ext.field.Field instead"

    And then Afterwards:

    "
    Uncaught TypeError: Object [object Object] has no method 'getInput'"

    My question is: how would you recommend changing that line of code such that the correct property is set using Sencha Touch2 PR3's updated components?

    Thanks again for providing this.