This is a migrated thread and some comments may be shown as answers.

Window Visibility Ignored

2 Answers 20 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jillian
Top achievements
Rank 1
Jillian asked on 16 Mar 2012, 09:42 PM
I want to have this window hidden on page load, and be opened when a user clicks on a link.  I am having no problem getting the window to open when the link is clicked, but in firefox, and IE9, despite my visible(false), the window is showing on page load.  How can i force this window to be hidden on page load?

<% Html.Telerik().Window().Name("ProfileFields") _
           .Title("Profile Fields") _
           .Draggable(True) _
           .Resizable(Function(resizable) resizable.Enabled(True).MinWidth(300).MinHeight(300)) _
           .Scrollable(True) _
           .Modal(False) _
           .Buttons(Function(b) b.Close) _
           .Content(Function(i)%>
                    Content
                     <%
End Function) _
           .HtmlAttributes(New With {.Style = "margin-left:100px;margin-top:-300px;"}) _
           .Width(650) _
           .Visible(False) _
           .Render()%>
 

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 21 Mar 2012, 02:21 PM
Hi Julian,

I am not able to reproduce the problem. Could you please check the project I attached and say if I missed something? If so, please modify and send it back so we can check what is going wrong.

Regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Jillian
Top achievements
Rank 1
answered on 21 Mar 2012, 02:42 PM
I have found that the problem is with the .htmlAttributes().  When I remove this, the visibility works as expected, but when I insert html attributes for positioning, the visibility is ignored and shows on page load.
Tags
Window
Asked by
Jillian
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Jillian
Top achievements
Rank 1
Share this question
or