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

isc_css3Mode=off and PickTrees

$
0
0
SmartGWT: smartgwt-4.0p-2014-01-08

With
Code:

isc_css3Mode="off"
a PickTree is drawn without any borders. This happens with any browser.

Is there any way to get back the borders without css3?

Code:

@Override
    public void onModuleLoad() {
        final DynamicForm form = new DynamicForm();
        form.setWidth(300);

        Tree tree = new Tree();
        tree.setRoot(departmentRoot);

        IPickTreeItem departmentItem = new IPickTreeItem();
        departmentItem.setTitle("Department");
        departmentItem.setValueField("name");
        departmentItem.setValueTree(tree);

        form.setItems(departmentItem);

        form.draw();
    }

private static final TreeNode departmentRoot =
            new DepartmentTreeNode("root",
                    new DepartmentTreeNode("Marketing",
                            new DepartmentTreeNode("Advertising"),
                            new DepartmentTreeNode("Community Relations")),
                    new DepartmentTreeNode("Sales",
                            new DepartmentTreeNode("Channel Sales"),
                            new DepartmentTreeNode("Direct Sales")),
                    new DepartmentTreeNode("Manufacturing",
                            new DepartmentTreeNode("Design"),
                            new DepartmentTreeNode("Development"),
                            new DepartmentTreeNode("QA")),
                    new DepartmentTreeNode("Services",
                            new DepartmentTreeNode("Support"),
                            new DepartmentTreeNode("Consulting")));

    public static class DepartmentTreeNode extends TreeNode {
        public DepartmentTreeNode(String name) {
            setName(name);
        }

        public DepartmentTreeNode(String name, DepartmentTreeNode... children) {
            setName(name);
            setChildren(children);
        }
    }


Viewing all articles
Browse latest Browse all 4756

Trending Articles