Hello Ankit,
I believe the requirement can be achieved by implementing the same in the REFRESH method of the TREE Node proxy class which would already be in place if the basic tree structure is in place.
This method will be a part of CN00 or CN01 kind of tree node proxy class.
Please notify back is this helps.
Best Regards,
Vinamra.