jQuery UI Widgets › Forums › General Discussions › Editors › CheckBox, RadioButton › 'hasThreeStates' in RadioButton is not working.
Tagged: hasThreeStates, jqxRadioButton, not, working
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 9 years, 8 months ago.
-
Author
-
Hi Team,
I’d like to ask you about ‘hasThreeStates’ of jqxRadioButton.
The ‘hasThreeStates’ option of jqxRadioButton is not working as jqxCheckbox works with it.
‘hasThreeStates’ would accept ‘null’ value in jqxCheckbox indicating ‘indeterminate’ state.
However, it is not working at all in jqxRadioButton.Please try it: http://jsfiddle.net/klien54/qatd74q9/
<div id='jqxCheckBox'>Entertainment</div> <button id="check1">CheckBox Null</button> <br> <div id='jqxRadioButton'>Radio Button </div> <div id='jqxRadioButton2'>Radio Button 2 </div> <button id="check2">RadioButton Null</button> <script> $("#jqxCheckBox").jqxCheckBox({ width: '300px', height: 25, hasThreeStates: true, theme: 'energyblue' }); $("#check1").jqxButton().on('click', function (e) { $("#jqxCheckBox").jqxCheckBox('val', null); }); $("#jqxRadioButton").jqxRadioButton({ width: 120, height: 25, theme:'energyblue', hasThreeStates:true }); $("#jqxRadioButton2").jqxRadioButton({ width: 120, height: 25, theme:'energyblue', hasThreeStates:true }); $("#check2").jqxButton().on('click', function (e) { // It's not working $("#jqxRadioButton").jqxRadioButton('val', null); }); </script>Thanks for your support as always.
Best Regards,
klien54Hi klien54,
This property is Obsolete in jqxRadioButton. It is not supported anymore.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter Stoev,
Thank you for your prompt reply as always.
I asked the question because there is a ‘hasThreeStates’ property in your API.
I guess you will remove it from the Docs.Thanks again.
Best Regards,
klien54Hi klien54,
Yes, we should remove it from the API. Sorry, about the confusion about it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.