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>