jQWidgets Forums

jQuery UI Widgets Forums Editors Button, RepeatButton, ToggleButton, LinkButton calling methods on toggle button ignored

This topic contains 4 replies, has 2 voices, and was last updated by  todd.cochran 9 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • calling methods on toggle button ignored #76313

    todd.cochran
    Participant

    We are currently on v3.6 and all calls to methods for the toggle button seem to be ignored. Please see the following code:

    
     case 'jqxToggleButton' :
    
                    switch(currCmd)
                    {
                        case "setProperty" :
    
                            var propObj = {};
    
                                propObj[command.propName] = command.propValue;
    
                            $(newId).jqxToggleButton(propObj);
    
                            propObj = {};
    
                            break;
    
                        case "callMethod" :
    
                            $(newId).jqxToggleButton(command.methodName);
    
                            break;
                    }
    

    I have already verified that the newId is set appropriately for both calls. In fact, the setting of properties works without issue. However, the call to any method seems to be ignored. I have even attempted to just hard code a call to a supported method and still does not call the method.

    thanks


    ivailo
    Participant

    Hi todd.cochran,

    Please try to update to the latest version 3.8.2

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    calling methods on toggle button ignored #78356

    todd.cochran
    Participant

    We are now on jQWidgets v3.9.1 (2015-Oct) and the same result. Any method we call seems to be ignored. When we set the toggled property to true on one of the buttons in a group, it does toggle the state but the other buttons do not change even though it is in radio mode. Further, all the styling seems to go away as well.

    calling methods on toggle button ignored #78384

    ivailo
    Participant

    Hi todd.cochran,

    Please send fiddle/jseditor link with your whole working code for better analyze of the problem.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    calling methods on toggle button ignored #78400

    todd.cochran
    Participant

    We resolved the issue. The problem was using a toggleButton within a button group. Once we switched to using a pure buttonGroup in radio mode, we were able to call from another button the “setSelection” method to select the appropriate button within the group. Once this was implemented, all worked as expected.

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

You must be logged in to reply to this topic.