Hello!
I have a checkbox-style treegrid with loadOnDemand data.
this.treeGrid = new TreeGrid();
this.treeGrid.setDataProperties(tree);
this.treeGrid.setDataSource(dataSource);
this.treeGrid.setAutoFetchData(true);
this.treeGrid.setSaveLocally(false);
this.treeGrid.setShowConnectors(false);
this.treeGrid.setShowHeader(false);
this.treeGrid.setShowOpener(true);
this.treeGrid.setAlwaysShowOpener(true);
this.treeGrid.setIconSize(0);
this.treeGrid.setShowOpenIcons(false);
this.treeGrid.setShowDropIcons(false);
this.treeGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
this.treeGrid.setSelectionProperty("checked");
this.treeGrid.setSelectionType(SelectionStyle.MULTIPLE);
this.treeGrid.setShowSelectedStyle(false);
this.treeGrid.setShowPartialSelection(true);
this.treeGrid.setCascadeSelection(true);
To address my customer needs, some nodes have to be unupdatable by user (he must not be able to change the checkbox status). So I set these nodes to "disabled".
But, the customer also needs to know why each unapdatable node is locked, so he wants a hover.
I read several javadocs and forum topics and I understood that no event (so Hover event too) is thrown on any disabled node. So I tried to find any workaround.
I read this old post and tried to use such a workaround but I didn't manage to succeed : https://forums.smartclient.com/forum...-disabled-rows
Is their a way to implement something that suits my customer's needs?
I am using smartgwtpro-5.0p_20151120 (and cannot upgrade easily to newer version due to customer policy)
I have a checkbox-style treegrid with loadOnDemand data.
this.treeGrid = new TreeGrid();
this.treeGrid.setDataProperties(tree);
this.treeGrid.setDataSource(dataSource);
this.treeGrid.setAutoFetchData(true);
this.treeGrid.setSaveLocally(false);
this.treeGrid.setShowConnectors(false);
this.treeGrid.setShowHeader(false);
this.treeGrid.setShowOpener(true);
this.treeGrid.setAlwaysShowOpener(true);
this.treeGrid.setIconSize(0);
this.treeGrid.setShowOpenIcons(false);
this.treeGrid.setShowDropIcons(false);
this.treeGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
this.treeGrid.setSelectionProperty("checked");
this.treeGrid.setSelectionType(SelectionStyle.MULTIPLE);
this.treeGrid.setShowSelectedStyle(false);
this.treeGrid.setShowPartialSelection(true);
this.treeGrid.setCascadeSelection(true);
To address my customer needs, some nodes have to be unupdatable by user (he must not be able to change the checkbox status). So I set these nodes to "disabled".
But, the customer also needs to know why each unapdatable node is locked, so he wants a hover.
I read several javadocs and forum topics and I understood that no event (so Hover event too) is thrown on any disabled node. So I tried to find any workaround.
I read this old post and tried to use such a workaround but I didn't manage to succeed : https://forums.smartclient.com/forum...-disabled-rows
Is their a way to implement something that suits my customer's needs?
I am using smartgwtpro-5.0p_20151120 (and cannot upgrade easily to newer version due to customer policy)
Comment