Hi,
I am using SmartGWT Power 3.0p, I have a problem with TreeViews with Internet Explorer. In IE 8 and IE 9. When setting cascade selection property to false (setCascadeSelection(false)), and when the user checks an item, this item is uncheck automatically
I've found that when I put a breakpoint the item stays checked until I release the breakpoint.
Here's a snippet adapted from the http://www.smartclient.com/smartgwt/showcase/#tree_checkbox example that evidences the problem:
I am using SmartGWT Power 3.0p, I have a problem with TreeViews with Internet Explorer. In IE 8 and IE 9. When setting cascade selection property to false (setCascadeSelection(false)), and when the user checks an item, this item is uncheck automatically
I've found that when I put a breakpoint the item stays checked until I release the breakpoint.
Here's a snippet adapted from the http://www.smartclient.com/smartgwt/showcase/#tree_checkbox example that evidences the problem:
Code:
public void onModuleLoad() { Tree employeeTree = new Tree(); employeeTree.setModelType(TreeModelType.PARENT); employeeTree.setRootValue(1); employeeTree.setNameProperty("Name"); employeeTree.setIdField("EmployeeId"); employeeTree.setParentIdField("ReportsTo"); employeeTree.setOpenProperty("isOpen"); employeeTree.setData(employeeData); final TreeGrid employeeTreeGrid = new TreeGrid(); employeeTreeGrid.setWidth(200); employeeTreeGrid.setHeight(240); employeeTreeGrid.setShowOpenIcons(false); employeeTreeGrid.setShowDropIcons(false); employeeTreeGrid.setData(employeeTree); employeeTreeGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX); employeeTreeGrid.setShowSelectedStyle(false); employeeTreeGrid.setShowPartialSelection(true); //employeeTreeGrid.setCascadeSelection(true); employeeTreeGrid.addDrawHandler(new DrawHandler() { public void onDraw(DrawEvent event) { employeeTreeGrid.getTree().openAll(); } }); DynamicForm df = new DynamicForm(); HLayout layout = new HLayout(20); layout.addMember(employeeTreeGrid); layout.addMember(df); layout.draw(); } public static final TreeNode[] employeeData = new TreeNode[] { new EmployeeTreeNode("4", "1", "Charles Madigen", "Chief Operating Officer", true), new EmployeeTreeNode("189", "4", "Gene Porter", "Mgr Tech Plng IntIS T", false), new EmployeeTreeNode("265", "189", "Olivier Doucet", "Asset Spec Lines Stns", false), new EmployeeTreeNode("264", "189", "Cheryl Pearson", "Dsl Sys Rep", false), new EmployeeTreeNode("188", "4", "Rogine Leger", "Mgr Syst P P", true) }; public static class EmployeeTreeNode extends TreeNode { public EmployeeTreeNode(String employeeId, String reportsTo, String name, String job, boolean isOpen) { setAttribute("EmployeeId", employeeId); setAttribute("ReportsTo", reportsTo); setAttribute("Name", name); setAttribute("Job", job); setAttribute("isOpen", isOpen); } }
Comment