Edit a tree grid view cell value

Hi,

Can someone please provide a sample javascript code that will allow to update a tree grid view’s cell text with a dynamic value .

In my case the value is not fetched as part of query definition, instead it’s calculated dynamically in the UI based on a tool bar button click method