I have a Rad Dock on a page. I need it to be positioned in a certain place on the page (in the top-right corner of a Panel, i.e. <div>).
Since actual coordinates and size of the panel are not available on the server side, I'm trying to set up a client script that moves a RadDock to the required position right after the page is loaded.
This might be relevant to the problem: I do not have RadDockLayout and RadDockZone on the page. I use master page.
What I have in aspx (I omitted some unrelated elements):
What I did:
I wrote a JavaScript function to position the dock:
In codebehind (OnInit) I attach the client function to the page:
The client function starts as expected, but $find(DockId.id) always returns null.
How to make all this work?