telerik:RadWindow:未能执行';getComputedStyle';在';窗口';:参数1的类型不是';元素';
我用telerik:RadWindow来显示RadEditor。在第一次使用时,popup运行良好。但在第二次执行时,它给出了telerik:RadWindow:未能执行';getComputedStyle';在';窗口';:参数1的类型不是';元素';,telerik,radwindow,Telerik,Radwindow,我用telerik:RadWindow来显示RadEditor。在第一次使用时,popup运行良好。但在第二次执行时,它给出了TypeError:未能在“窗口”上执行“getComputedStyle”:参数1不是“元素”类型。javascript错误。这只发生在Chrome浏览器中 我添加了timeout来启动radwindow.show()函数。那么它工作得很好。有没有办法解决这个问题 标记: <telerik:RadWindow ID="winSection" runat="serv
TypeError:未能在“窗口”上执行“getComputedStyle”:参数1不是“元素”类型。
javascript错误。这只发生在Chrome浏览器中
我添加了timeout来启动radwindow.show()函数。那么它工作得很好。有没有办法解决这个问题
标记:
<telerik:RadWindow ID="winSection" runat="server" Width="800px" Modal="true" VisibleStatusbar="false" style="z-index: 2999;"
VisibleTitlebar="true" Behaviors="Move" AutoSize="true" >
<ContentTemplate>
<div class="popupModalTitle" runat="server">
<asp:Label ID="ltrlTitle" runat="server" />
</div>
<div class="sectionPopupTitle">
<label for="txtTitle">
<asp:Label Text="Title"
runat="server" />
</label>
<asp:TextBox ID="txtTitle" runat="server" Width="415" CssClass="txtTitlePopup" MaxLength="100" />
</div>
<telerik:RadEditor runat="server" ID="radEditor" Height="550px" Width="850" EditModes="All" ContentFilters="DefaultFilters" ExternalDialogsPath="~/Controls/RadEditorDialogs/"
OnClientCommandExecuted="OnClientCommandExecuted">
<ImageManager ViewPaths="~/Pages/Uploads/" UploadPaths="~/Pages/Uploads/" DeletePaths="~/Pages/Uploads/" />
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="AddInternalLink" Text="Add Internal Link" />
<telerik:EditorTool Name="ImageManager" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="LinkManager" />
<telerik:EditorTool Name="Unlink" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="AjaxSpellCheck" />
<telerik:EditorTool Name="SelectAll" />
<telerik:EditorTool Name="Cut" />
<telerik:EditorTool Name="Copy" />
<telerik:EditorTool Name="Paste" />
<telerik:EditorTool Name="PasteStrip" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="Undo" />
<telerik:EditorTool Name="Redo" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Superscript" />
<telerik:EditorTool Name="Subscript" />
<telerik:EditorTool Name="InsertParagraph" />
<telerik:EditorTool Name="InsertGroupbox" />
<telerik:EditorTool Name="InsertHorizontalRule" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="FormatBlock" />
<telerik:EditorTool Name="FontName" />
<telerik:EditorTool Name="RealFontSize" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Bold" />
<telerik:EditorTool Name="Italic" />
<telerik:EditorTool Name="Underline" />
<telerik:EditorTool Name="StrikeThrough" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="JustifyLeft" />
<telerik:EditorTool Name="JustifyCenter" />
<telerik:EditorTool Name="JustifyRight" />
<telerik:EditorTool Name="JustifyFull" />
<telerik:EditorTool Name="JustifyNone" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="Indent" />
<telerik:EditorTool Name="Outdent" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="InsertOrderedList" />
<telerik:EditorTool Name="InsertUnorderedList" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="ToggleTableBorder" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="ForeColor" />
<telerik:EditorTool Name="BackColor" />
<telerik:EditorTool Name="FormatStripper" />
</telerik:EditorToolGroup>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="InsertSymbol" />
<telerik:EditorTool Name="InsertTable" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="ConvertToLower" />
<telerik:EditorTool Name="ConvertToUpper" />
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>
<div id="Div2" class="popupModalButtons center" runat="server">
<asp:Button ID="Button3" runat="server" Text="OK" CssClass="btn" OnClientClick="saveSectionBtnClick(); return false;" />
<asp:Button ID="Button1" runat="server" Text="Cancel" CssClass="btn" OnClientClick="closeRadWindowBtnClick(); return false;" />
<asp:Button ID="Button2" runat="server" ToolTip="Close" CssClass="btnClose" OnClientClick="closeRadWindowBtnClick(); return false;" />
</div>
</ContentTemplate>
</telerik:RadWindow>
谢谢 也许你能提供一些代码来帮助我们帮助你。@Veselin代码片段添加到问题中。酷。那么,“第二次不起作用”是什么意思呢?你第一次打开窗户,没关系,第二次怎么打开?您是否先单击“确定”、“取消”或其他任何操作?单击这些按钮时会发生什么?也包括它们的事件处理程序。是否调用onParentNodeChanged()RadEditor方法:?另外,请确保使用正确的ID,如:$find(“”),show();
function openRadWindow() {
var radwindow = $find(radWindowClientID);
adwindow.show();
}