Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

CheckBoxItem String value

$
0
0
Hi,

I seems that calling the setValue() method of a CheckBoxItem, with a string argument ("true" or "false") is not supported or not working. Can you please fix this ?

Here is a test case:

Code:

VLayout test = new VLayout();
        DynamicForm form = new DynamicForm();
        CheckboxItem item = new CheckboxItem("CB1", "First"), item2 = new CheckboxItem("CB2", "Second");
        item.setValue("true");
        item2.setValue("false");
        form.setItems(item, item2);
        test.setMembers(form);
        test.setWidth(500);
        test.setHeight(500);
        test.show();

In this example, both items are checked.

Regards,
Thomas

Viewing all articles
Browse latest Browse all 4756

Trending Articles