Hi Kian Cha,
To achieve the desired behavior you need to modify the myHandler function that I sent you before:
function myHandler()
{
var isCollapsed = !this.get_collapsed();
this.set_collapsed(isCollapsed);
this.updateClientState();
this.doPostBack('ExpandCollapse');
}
I am attaching our Dynamically Created Docks
online demo demonstrating a dynamic scenario with preservation of state where the docks have the expand/collapse behavior you would like to have. Hope you find it helpful.
Concerning the documentation question you asked - the JavaScript methods such as $find, $addHandlers, etc. are ASP.NET AJAX methods and useful resources you can find
here. Concerning RadDock Prometheus documentation we are constantly working on improving it, so let us know if there is something specific that you do not find but think should be included in the help resources.
Greetings,
Petya
the Telerik team