I have a problem with custom tool part. The page needs a refresh before the changes are actually visible in the web part.
Either user have to hit apply then OK in Tool Part, or after directly hitting Ok he needs to refresh the page.
Seems to be create child control of web part being called before applychanges of tool part.
Any pointers ?
This is a common issue with custom properties in SharePoint webpart.
Just try call the method that modifies your custom property in the PreRender event.
For more check these links:
Thanks for you guidance,
I had to use a property from custom tool part to a script in the usercontrol( inside our web part).
calling my RegisterStartUpScript inside OnPreRender in user control solved my problem.