Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Vancouver, Canada
    Posts
    157
    Vote Rating
    14
    el_chief will become famous soon enough

      0  

    Default Can't use a radiogroup when model field is type boolean

    Can't use a radiogroup when model field is type boolean


    I want to use a radiogroup (Yes/No) with a Model that has a type:'boolean' Field.

    However, this does not work.

    It works with strings and ints, but not booleans

    in Ext.form.field.Radio.setValue()

    it checks whether the value i am trying to set is a boolean, and then checks that radio, whereas it should check whether then inputValue is equal to the value set.

    Is there a workaround?

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Can I get a locally runnable test case?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Vancouver, Canada
    Posts
    157
    Vote Rating
    14
    el_chief will become famous soon enough

      0  

    Default


    Here is an example:

    http://jsfiddle.net/BgJ9T/1/

  4. #4
    Sencha User
    Join Date
    Nov 2009
    Posts
    10
    Vote Rating
    1
    firegun is on a distinguished road

      0  

    Default


    I´d experienced the exact same issue.

    To "solve" it (actually work around it) was to set

    Code:
    {name: 'boolvalue', convert: function(v) { return (v ? 1 : 0); }, defaultValue: 0 }
    and work with int val, since it worked ok with booleancolumn for instance.

    But I agree that you example should with no furter tricks, as may be expected (was by me too).

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi