on 01-31-2008 4:49 AM
Hi All,
I have radiobuttongroupbykey UI element in my application.It is bind to valueattribute. I want to deselect radiobutton (reset radiobutton) on action Reset. How to reset radiobutton???
Also i dnt want to dispaly lable for radiobutton . If i set text blank thn key is getting displayed as label for radio button group. How to set lable as blank (No label ) for radiobuttongroup???
Ragards
Kavita
Hi Kavita,
For your 1st Question....
Write this code on click of reset button ....
wdContext.currentContextElement().set<Your Context>(null);
This will definetly deselect your radio btn....
For your 2nd Question....
Can u brief me as in why u hv the requirement to set the label txt blank???
Regards,
Kunal Kotak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kunal ,
My deselecting radio button problem is solved .
About setting label as blank, I am creating quiz application where i have to display question text along with options. All UI are getting generated dynamically. I am displaying all questions on single page (no navigation from one question to another). So for every question label for options is getting repeated. I want to display label for all options at top of page as header , and on quiz page , along with questions only radio button should be displayed without labels.
Kavita
Hi Kavita,
Hope you are looking for radiobutton without label text.
ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("selectedRBKey");
IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();
values.put("1"," "); // Empty string with space will remove your key from text
values.put("2","Fname");
values.put("3","Lname");
Regards, Suresh KB
Hi Kavitha,
In reset action do : wdContext.currentContextElement().setSelectedRBKey(""); //set null
Check the Label text string length if its zero means set the key as null.
Hope this will solve your problem
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kavita,
Try setting the label text as empty string " " and then check.
Regards, Suresh KB
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 | |
6 | |
6 | |
6 | |
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.