2
我正在尝试将Kendo UI模式窗口放在我的按钮旁边,它不工作。Kendo UI窗口相对于按钮位置
这里是我的按钮,单击代码:
$('#button').click(function() {
var x = $("#button").offset().left;
var y = $("#button").offset().top;
window1 = $('#window1');
if (!window1.data("kendoWindow")) {
window1.kendoWindow({
actions: ["Refresh", "Close"],
width: "450px",
position: {
left: x,
top: y
},
title: "Window Title",
modal: true,
resizable: false
});
}
window1.show();
window1.data("kendoWindow").open();
});