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

Modal does not do anything; windows do not show from hidden div

0 Answers 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 23 Oct 2012, 07:04 PM
I don't want my DIV that I am using for my Kendo window to flash on the screen.  If I allow it to be displayed, it shows (quickly), then dissapears when I initialize the Kendo window on the document ready.  That flash is fairly annoying.  So I have the CSS set to "display: none;".  Do this, and the window never shows when I call open:

win = $("#window").kendoWindow({
   actions: ["Close"],
   height: "300px",
   modal: true,
   title: "RO / Documents",
   visible: false,
   width: "400px"
}).data("kendoWindow");
win.center();
win.open();

I found that if I modify the top line as follows this works:
win = $("#window").css("display", "block").kendoWindow({

Just wanted to report that.  Possibly it's been fixed.

Please ignore the "modal" comment in the header.  That was a separate issue I was asking about; however I found and fixed the problem.  I am unable to edit the title, just this post.

No answers yet. Maybe you can help?

Tags
Window
Asked by
Paul
Top achievements
Rank 1
Share this question
or