on 01-22-2009 7:09 PM
Hello,
I am using a checkbox group UI element. I have to get the unchecked members of the checkbox group. How should I go about this.
Thanks a lot
Srinivas
Say your checkbox group is bound against "Items" (context node containing the attribute to which "texts" property is bound).
Then
for (int i = 0; i < wdContext.nodeItems().size(); ++i)
{
if ( wdContext.nodeItems().isMultiSelected(i) )
/* item at index i is checked */
else
/* item at index i is unchecked */
}
gives you the checked/unchecked items.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sri,
Its simple. Just as you get the checked items similar to that you can get the unchecked items as explained below:
for(int i=0; i<wdContext.<nodename>.size();i++){
if(condition for checking the item is checked){
//here put the code for checked item
}
else{
//here put the code for unchecked item
}
}
Regards.
Rajat
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 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.