I'm having difficulties accessing the client document object in a RadWindow. The Javascript Forms object is zero length and document.getElementById() doesn't find my controls either.
I've also noticed that the Sys object isn't availble, so I can't use Sys.UI.DomEvent.addHandler to create code for the Window load event (I've used this elsewhere to set the intial disabled state of a couple of buttons on my page).
My window, wndCashDetail, is declared in RadWindowManager:
<telerik:RadWindowManager ID="RadWindowManager1" |
Width="1200px" |
Height="500px" |
Modal="true" |
runat="server" |
Behavior="Move" |
OnClientClose="closeDetailsWindow" |
DestroyOnClose="True" |
ReloadOnShow="True" |
Title="Cash Detail" |
VisibleStatusbar="False" Skin="Office2007"> |
</telerik:RadWindowManager> |
My window is opened by a client side call as follows:
var oWnd = window.radopen(URL, "wndCashDetail" ); |
At the top of my window I want to run the following script to add a window load event handler:
Sys.UI.DomEvent.addHandler(window, "load", DisableFunctionalityButtons); |
This does not work though - I get 'Sys is undefined'. Also, document.forms.count is zero, and I can't find any of my controls with document.getElementById().
I think I must be missing something fundamental here. Is the normal DOM not available in modally opened RadWindows?
Rob