Jul 01, 2010, 10:01 PM
[CLOSED] Update a nodes iconcls and cls properties in direct method.
How do I update a tree nodes iconcls and cls properties in direct method.
I was hoping to do something like:
I was hoping to do something like:
[DirectMethod]
public void RefreshTreeItem(int nodeId)
{
TreeNode node = MyTreePanel.GetNodeById(nodeId);
node.Cls = GetClassForNode(nodeId);
node.IconCls = GetIconClassForNode(nodeId);
}
The issue I have is that there is no GetNodeById method for a treepanel.
Last edited by geoffrey.mcgill; Jul 07, 2010 at 2:43 AM.