Hey, I am struggling with refreshing a buttonset because I'm programatically setting a checked item in the underlying radio button. But nevermind that for the time being. Please check this out:
http://jsfiddle.net/x3QY3/1/
It is a sample that I did NOT do. I found it. If you see the jQuery version used, it is 1.8.3 with jQuery UI 1.9.2. The code works. The Select All button correctly uses prop() to set the checked state of the checkboxes and then calls for a refresh (as individual buttons, which works but I would have used the refresh method of the buttonset instead).
Now change the references to jQuery v1.9.1 (and keep jQuery UI 1.9.2). Re-run the example. Now click Select All. Voilá!! Err... I mean damn!! The buttons didn't refresh their state.
So what is this problem all about? Is there a fix? I've been writing a widget and will be run under jQuery 1.10.xx and I'm betting the problem is there too. Or is it not? In any case, please volunteer any info you have on this apparent bug. Thanks!
As the only workaround so far that I can find out is to destroy the buttonset and then re-create it.... everytime a programatic selection is made. I'll verify if clicking the button actually sets the checked property of the radio buttons.