on 09-26-2008 11:01 PM
One liner Qs.
Is it possible to disable 2 out of 5 radio buttons in a RadioButtonGroupByKey element?
Hi faraz
It's very easy to do with individual radio buttons ... using select key and key to select . properties . if u want to see those radio buttons after disabling you can achieve with radio buttons .......
Attribute R1= selected key and where 'Q1' is key to select
use this code
exe:
if(wdContext.currentContextElement().getR1() == "Q1")
* {*
wdContext.currentContextElement().setR2(null);
* wdContext.currentContextElement().setR3(null)*
* wdContext.currentContextElement().setR4(null);*
wdContext.currentContextElement().setR5(null);
}
when you select one radio button other buttons will dissabled .....
Regards ..
Ramprasad.k
Edited by: Ramprasad K on Sep 29, 2008 10:45 PM
Edited by: Ramprasad K on Sep 29, 2008 10:46 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Example:
Context:
-- selectedKey (string)
-- button1Enabled (boolean)
...
-- button5Enabled (boolean)
Data binding:
RadioButton1.selectedKey = @selectedKey
RadioButton1.keyToSelect = "1"
RadioButton1.enabled = @button1Enabled
etc. for other buttons
// select radio button 2:
wdContext.currentContextElement().setSelectedKey("2");
// enable radio button 2:
wdContext.currentContextElement().setButton2Enabled(true);
// etc. for other buttons
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The Radio Buttons that you wish to disable in the group has to be mapped with a different context and rest of the radio buttons with another context. For Example if you have group of 5 radio buttons and you wish to disable radio button 1 and 2 then the mapping will be as follows:
Radio Button 1 & 2 ---> Context A
Radio Button 3,4 & 5 --> Context B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Faraz,
You can not disable some radio buttons from a group. For this, you can use individual buttons and can play with their properties.
I hope this helps. If you need some more help, please get back. I'll be happy to help you
Cheers!!!
Umang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. But you can achieve that with individual radio buttons.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
please check this link
thanks
vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
RadioButtonGroupByKey is having a property called readonly change this to true.
Thanks
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.