-
12 Dec 2011 9:51 PM #1
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
-
13 Dec 2011 10:45 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,617
- Vote Rating
- 435
Can I get a locally runnable test case?
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.
-
8 Jan 2012 10:46 PM #3
-
4 Mar 2012 12:01 PM #4
I´d experienced the exact same issue.
To "solve" it (actually work around it) was to set
and work with int val, since it worked ok with booleancolumn for instance.Code:{name: 'boolvalue', convert: function(v) { return (v ? 1 : 0); }, defaultValue: 0 }
But I agree that you example should with no furter tricks, as may be expected (was by me too).
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote