I’m getting the following error when trying to open a window control when Visible is set to false after upgrading to version 2010.3.1110.235 of Telerik.Web.Mvc.dll. I was not getting the error on the previous version. The error is ‘Invalid argument jquery-1.4.3.js, line 6489 character 21’
The jquery line is:
_default: function (fx) { if (fx.elem.style && fx.elem.style[fx.prop] != null) { fx.elem.style[fx.prop] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit; } else { fx.elem[fx.prop] = fx.now; } } The window will popup displaying the content and the javascript error is thrown. When you close the window and re-open, the window opens but the content does not display. If I set the window to Visible(true) and load the page the window pops up fine and you are able to open and close with the content showing up fine.
<% Html.Telerik().Window() .Name("Window") .Content(() => {%> <p>Test Content</p> <%}) .Buttons(buttons => buttons.Close()) .Width(450) .Draggable(true) .Visible(false) .Render(); %> <button onclick="openWindow()">Open</button> <script type="text/javascript"> function openWindow() { var window = $("#Window").data("tWindow"); window.open(); } </script> I’m not sure if I’m missing something simple or if this is a bug. I’m referencing the new version and I copied the style sheets and scripts to the correct location and they are referenced correctly on the page.
I can also duplicate the error if I set the Window to visible on page load and use HtmlAttributes
to set style="display:none" for the window.
Thanks in advance
-Brad