Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to create Group of checkBoxes

    Just the way we have RadioGroupItem , do we have some way to create a group of checkBox in a group . In which at a time only one is selectable (only one can be checked at a time).

    basically i want a horizontally aligned checkboxes for "yes"/"No" action.

    Thanks

    #2
    Currently, you would need to do this by adding a series of CheckboxItems and adding code to make sure only one can be selected at a time.

    Comment


      #3
      Thanks.
      So I will need to create a small form and add two checkboxes and handle their respective click.

      Comment


        #4
        Hi,

        I am new to SmartClient .I don't know how to use SmartClientSDk in .aspx pages.

        Could please give me some examples for how to use smartclient in Asp.Net

        Thanks
        ramesh n

        Comment


          #5
          maybe this work for you (add some marggin)
          Code:
           
          		DynamicForm form = new DynamicForm();
          		form.setBorder("1px solid #6a6a6a");
          		form.setMargin(5);
          		final CheckboxItem check1 = new CheckboxItem();
          		check1.setName("1");
          		check1.setTitle("Login");
          		check1.setValue(false);
          		final CheckboxItem check2 = new CheckboxItem();
          		check2.setName("2");
          		check2.setTitle("Login");
          		check2.setValue(false);
          		final CheckboxItem check3 = new CheckboxItem();
          		check3.setName("3");
          		check3.setTitle("Logout");
          		check3.setValue(false);
          		form.setFields(check1, check2.....);

          Comment

          Working...
          X