Hi,
I recently updated our system from SmartClient v12.0 to v12.1 and I notice the method TreeGrid.getOpenIcon now gets as an argument a record number instead of the tree node.
I am wondering whether this is a deliberate change or a bug since the documentation still states it should get the TreeNode:
In the meantime, I overcome this by fetching the node per the given recordNum like this, but I'd like to be sure this is the correct approach:
Thanks
I recently updated our system from SmartClient v12.0 to v12.1 and I notice the method TreeGrid.getOpenIcon now gets as an argument a record number instead of the tree node.
I am wondering whether this is a deliberate change or a bug since the documentation still states it should get the TreeNode:
String [URL] TreeGrid.getOpenIcon (node) [Advanced] | |
Get the appropriate open/close opener icon for a node. Returns null if showOpener is set to false. Parameters: node - type: TreeNode tree node in question Returns: type: String [URL] - URL for the icon to show the node's open state |
Code:
var node = this.data.getAllNodes()[recordNum];
Comment