Kendo Window UI控件
it1352
帮助1人
问题说明
大家好,这是另一回事,我身边有一点问题。
我在视图中使用kendo窗口弹出窗口。我正在使用kendo代码,它首先在document.ready()上显示窗口,当我关闭窗口时它会给我链接。
我想首先显示我的链接,所以当用户点击链接时,弹出窗口会有更多的选项和字段。
这是我的代码...
Hellow everyone this is sohaib ameen here again with a little problem at my side.
I am using kendo window for popup window on my view. I am using kendo code which shows me window first on "document.ready()" and when I close the window it gives me the link.
I want to show my link first so when the user will click on link a popup window will come having further options and fields in it.
Here is my code ...
var window = $("#window"),
undo = $("#undo")
.bind("click", function () {
window.data("kendoWindow").open();
window.data("kendoWindow").center();
alert("Window Opened");
undo.show();
});
var onClose = function () {
undo.show();
}
if (!window.data("kendoWindow")) {
window.kendoWindow({
//visible: false,
width: "600px",
height: "500px",
draggable: false,
actions: ["Minimize", "Maximize", "Close"],
resizable: false,
title: "Report Activity",
content: "../../AlertCounselor.htm",
close: onClose
});
}
请找我解决这个问题的方法...
非常感谢!!
please find me a way to resolve this ...
Thanks alot !!
正确答案
#1
( #window),
undo =
("#window"), undo =
( #undo)
.bind( click ,function(){
window.data( kendoWindow)。open();
window.data( kendoWindow)。center();
alert ( 窗口打开);
undo.show();
});
var onClose = function(){
undo.show();
}
if (!window.data( < span class =code-string> kendoWindow)){
window.kendoWindow({
// visible:false,
width: 600px,
高度: 500px,
可拖动: false ,
操作:[ 最小化, 最大化, 关闭],
可调整大小: false ,
title:< span class =code-string>报告活动,
内容: .. /../ AlertCounselor.htm,
关闭:onClose
});
}
("#undo") .bind("click", function () { window.data("kendoWindow").open(); window.data("kendoWindow").center(); alert("Window Opened"); undo.show(); }); var onClose = function () { undo.show(); } if (!window.data("kendoWindow")) { window.kendoWindow({ //visible: false, width: "600px", height: "500px", draggable: false, actions: ["Minimize", "Maximize", "Close"], resizable: false, title: "Report Activity", content: "../../AlertCounselor.htm", close: onClose }); }
请找我解决这个问题的方法...
非常感谢!!
please find me a way to resolve this ...
Thanks alot !!
而不是将代码放在documnet.ready()中,
执行以下操作,
在您的链接显示页面中, < br $>
@(Html.Kendo()。窗口()
.Name(customWindow)
。内容(< div id =''customWindowContent''>< / div>)
。可见(false)
.Modal(true)
。宽度(700)
)
在jQuery文件中,编写以下函数,
customEdit:function(){
Hi,
Instead of putting the code in documnet.ready(),
do the following,
In your link display page,
@(Html.Kendo().Window()
.Name("customWindow")
.Content("<div id=''customWindowContent''></div>")
.Visible(false)
.Modal(true)
.Width(700)
)
In a jQuery File, Write a following function,
custom function () {
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /reply/detail/tanhcgbfaf
系列文章
更多
同类精品
更多
-
YouTube API 不能在 iOS (iPhone/iPad) 工作,但在桌面浏览器工作正常?
it1352 07-30 -
保持在后台运行的 iPhone 应用程序完全可操作
it1352 07-25 -
iPhone,一张图像叠加到另一张图像上以创建要保存的新图像?(水印)
it1352 07-17 -
使用 iPhone 进行移动设备管理
it1352 07-23 -
在android同时打开手电筒和前置摄像头
it1352 09-28 -
扫描 NFC 标签时是否可以启动应用程序?
it1352 08-02 -
检查邮件是否发送成功
it1352 07-25 -
Android微调工具-删除当前选择
it1352 06-20 -
希伯来语的空格句子标记化错误
it1352 06-22 -
Android App 和三星 Galaxy S4 不兼容
it1352 07-20