Skip to Content
author's profile photo Former Member
Former Member

Regarding checkbox group

Hi I inserted the checkbox group of colcount 2 i want to put labels to each checkbox in design time now i am not enable to rename the label please give me the answwer

thanks & regards,

Tulasi.Palnati

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2008 at 04:48 AM

    Hi,

    You can create a simple type with the same number of values as you want in the check box group.

    Now bind this simple type with your Check box group this way:

    1) Create a context of that simple type in your view inside a node.

    2)Bind the context to the 'Texts' field of your check box group.

    The enumeration you have given in ur simple type will get bound to the check box group as the labels. Simple.

    Let me know if u need any more details. I will provide.

    Regards,

    Gita KC

    Edited by: Gita Chhatri on Jun 27, 2008 6:49 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2008 at 04:51 AM

    Hi Tulasi,

    Are you using checkboxgroup UI Element.How did you put labels at designtime?

    to Work with check box group .

    Create conext node(1..n) say "nodeChkBxGrp"--> create value attribute (String ) say "text".

    insert checkboxgroup UI Element bind

    bind texts to nodeChkBxGrp.text.

    in wdDoInit(){

    for(int i=0;i<10;i++){

    Iprivate<urview>.InodeChkBxGrpElement ele=wdContext.createChkBxGrpElement();

    ele.setText("text"+i);

    wdContext.nodeNodeChkBxGrp().addElement(ele);

    }

    }

    Regards,

    Naga

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.