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); |
| Load control template file /_controltemplates/TelerikRadEditorHtml.ascx failed: Could not load file or assembly 'Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. |
Opening the generated .aspx file in SharePoint Designer shows that it is created dynamically at run-time. How can I ensure that the correct "<%@ Register TagPrefix=" entry is in the page ?
Is there a default I can use to ensure that radEditor loads without breaking the existing SharePoint resources ?
e.g. the current page directives section looks like this:
| <%@ Page language="C#" MasterPageFile="~masterurl/default.master" title="New Page 1" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"%> |
| <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> |
| <%@ Import Namespace="Microsoft.SharePoint" %> |
| <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> |
| <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><asp:content id="content2" runat="server" contentplaceholderid="PlaceHolderMain"> |
<
body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<br />
<%
-- Context menu DOES work --%>
<telerik:RadEditor ID="RadEditor1" runat="server">
</telerik:RadEditor>
<%
-- xxxxxxxxxxxxxx --%>
<br />
<%
-- Context menu DOESN'T work --%>
<telerik:RadEditor ID="RadEditor2" runat="server">
<Tools>
<telerik:EditorToolGroup Tag="new">
<telerik:EditorTool Name="InsertTable" />
</telerik:EditorToolGroup>
</Tools>
<Content>
</Content>
</telerik:RadEditor>
<%
-- xxxxxxxxxxxxxx --%>
<br />
</div>
</form>
</
body>
<
telerik:RadTreeView ID="rtvTaxonomies" runat="server" Skin="Default"
CheckBoxes="true" SingleExpandPath="True" TriStateCheckBoxes="true"
CheckChildNodes="false">
<CollapseAnimation Duration="300"></CollapseAnimation>
<ExpandAnimation Duration="300"></ExpandAnimation>
</telerik:RadTreeView>