View Full Version : How to get toggleGroup value

29 Nov 2011, 7:19 AM
Hello !

I've 3 buttons (A, B, C) in the same toggleGroup.
I've an other button D with a toggleHandler.

When the D button is (un)pressed, i want to run the D button's toggleHandler with the (A, B, C) button's toggleGroup value.

How can i pass the (A, B, C) button's toggleGroup value as parameter ?

29 Nov 2011, 2:42 PM
You just need to get the buttons and then see which one is pressed.

29 Nov 2011, 11:29 PM
So, i must take every button of the togglegroup and check which one is pressed ?
I was thinking it could be done like a radiogroup...

30 Nov 2011, 7:19 AM
All the radiogroup does is iterate through it's items. So that's what you will have to do.

30 Nov 2011, 11:55 PM
It could be a good thing if Extjs can do this by itself for toggleGroup...

1 Dec 2011, 5:27 AM
Since Ext JS 4 is out, there will be no more new features added to Ext JS 3