Hello -
I have a mapping application (the get map calls are AJAX based), and the page is a full screen splitter layout (5 panes, I believe). I need to know the size of the map pane so I can include the height and width with the AJAX call for the Map. In the older 2006 Telerik version, I basically had to create a hack where I attached a javascript function the topSplitter_onLoaded event, to check to see if the Map pane was created yet. If it wasn't, I waited 500 ms, and tried again. This worked well.
Withe the new version 2008 q2, I'm now getting the sys.application is undefined error. I'm assuming this has to do with something being referenced before it is created.
The following is the code (from Firebug) that is failing:
Sys.Application.add_init(function() {
I saw the following in a related post, but I am unsure how it helps:
That is why when you try to obtain a reference to the RadWindowManager its client object is still not created. To correctly reference it you should add a load handler as shown below:
literalInjectJavascript.Text = "<script type='text/javascript'> Sys.Application.add_load(ShowWindow); </script>";
I have a mapping application (the get map calls are AJAX based), and the page is a full screen splitter layout (5 panes, I believe). I need to know the size of the map pane so I can include the height and width with the AJAX call for the Map. In the older 2006 Telerik version, I basically had to create a hack where I attached a javascript function the topSplitter_onLoaded event, to check to see if the Map pane was created yet. If it wasn't, I waited 500 ms, and tried again. This worked well.
Withe the new version 2008 q2, I'm now getting the sys.application is undefined error. I'm assuming this has to do with something being referenced before it is created.
The following is the code (from Firebug) that is failing:
Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadPane,
{"_collapsed":true,"_collapsedDirection":1,"_expandedSize":0,"_height":"400px","_index":0,"_indexInPanes":0,"_originalHeight":"400px","_originalWidth":"220px","_scrollLeft":0,"_scrollTop":0,"_width":"220px","clientStateFieldID":"navPanel_ClientState"},
null, {"parent":"topSplitter","splitter":"topSplitter"},
$get("navPanel"));
I saw the following in a related post, but I am unsure how it helps:
That is why when you try to obtain a reference to the RadWindowManager its client object is still not created. To correctly reference it you should add a load handler as shown below:
literalInjectJavascript.Text = "<script type='text/javascript'> Sys.Application.add_load(ShowWindow); </script>";