PDA

View Full Version : disable not selected checkbox



narama87
26 Nov 2009, 2:02 AM
Hello everybody ,
I'm new with Extjs.
here is my problem : I nead to create two chechboxes , and if one of them is selected the other one
is disabled :-?.
could anyone tell me how to write such a function 8-|? that would be so helful:-/ .

CrazyEnigma
26 Nov 2009, 1:56 PM
Do you mean a radio button? Your question is vague.

If you mean to disabled like they can't select the other checkbox:
You could use something like checkboxgroup. Use a listener and disable the other checkbox.

But what happens if the user was wrong and decides they want to change their answer. It doesn't make sense. You might as well disable the entire checkbox group at this point. Or you have buttons that moves the process along.