- Thanks. I'll give it a try and let you know if it works.
Adam Moore <adamoore@...> wrote:
On Fri, Mar 28, 2008 at 11:28:47PM -0000, Rich wrote:
> I am trying to remove a node from the treeview using the following code.
> nodeToRemove = tree.getNodeByIndex(nodeToRemoveIndex);
> However, I get the following error when tree.removeNode is executed.
> Error: 'this.tree.root' is null or not an object.
> Can anyone tell me how to correct this problem?
getNodeByIndex will return null if it doesn't find a node with the
supplied index. Verify you are providing a valid index. If that
doesn't help you solve the problem, please post a link to your code.
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.