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

Unable to Set Dimensions of Window

1 Answer 12 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jackie
Top achievements
Rank 1
Jackie asked on 24 Jul 2017, 05:13 PM

Hello,

I'm trying to set the width of a Kendo window I am using, and have so far been unable to get it to work. I've attached my code below, and I've bolded the three different places where I have tried setting the width (lines 7, 14, and 21) --so far, none of these individually or combined have created any effect on the width of the window.

Am I missing something here?

Thanks!

01.@(Html.Kendo().Window()
02.    .Name("preview")
03.    .Title("Preview")
04.    .Visible(false)
05.    .Modal(true)
06.    .Draggable(true)
07.    .Width(100)
08.)
09. 
10.<script type="text/javascript">
11. 
12.    function openPreview(storyID) {
13.        $("#preview").kendoWindow({
14.            width: 100
15.        });
16.        var dialog = $("#preview").data("kendoWindow");
17. 
18.        dialog.refresh({
19.            data: { storyID: storyID },
20.            url: "@Url.Action("Preview", "Home")",
21.            width: 100
22.        });
23. 
24.        dialog.center().open();
25.    }
26.</script>

1 Answer, 1 is accepted

Sort by
0
Jackie
Top achievements
Rank 1
answered on 24 Jul 2017, 05:18 PM
Apologies, just found the issue somewhere else. Sorry about that!
Tags
Window
Asked by
Jackie
Top achievements
Rank 1
Answers by
Jackie
Top achievements
Rank 1
Share this question
or