change widget id of tree widget node

I am using tree widget, which nodes are built on server side.
On the client side i want to change tree element's name (which is quite easy with setTitle method), but
i also have to change it's widget id. Since widget id in my tree consisits of id and name e.g. id_name.

And here comes the problem, when i change element's widget id in javascript, dojo.widget.byId() can't find this element by its new id.

How can i solve this.
thnx

Back to top