jQuery UI Widgets Forums Editors CheckBox, RadioButton 'hasThreeStates' in RadioButton is not working.

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 8 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • klien54
    Participant

    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,
    klien54


    Peter Stoev
    Keymaster

    Hi klien54,

    This property is Obsolete in jqxRadioButton. It is not supported anymore.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    klien54
    Participant

    Hi 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,
    klien54


    Peter Stoev
    Keymaster

    Hi klien54,

    Yes, we should remove it from the API. Sorry, about the confusion about it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.