PDA

View Full Version : How to get toggleGroup value



senacle
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 ?

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

senacle
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...

mitchellsimoens
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.

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

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