gpt4 book ai didi

kendo-ui - 如何在 Kendo Treeview 中嵌套 Kendo 窗口?

转载 作者:行者123 更新时间:2023-12-03 22:51:49 34 4
gpt4 key购买 nike

我正在尝试在 Treeview 中嵌套一个窗口。我想要这样,当用户选择一个特定的节点时,它会打开一个 Kendo 窗口。有没有人做过这个?我在演示中没有看到太多类似的东西。

我正在使用 mvc 包装器。谢谢!

最佳答案

树节点的 Onclick 事件

叫这个

$("tree node").click(function(){
KendoDialog("Window TItle", "Content in the window", 700, 350);
});

function KendoDialog(windowTitle, message, windowWidth, windowHeight) {
var WindowElement = $("#kwDialog").data("kendoWindow");
WindowElement.setOptions({
width: windowWidth,
height: windowHeight,
title: windowTitle
});
WindowElement.content("<b>" + message + "</b>");
WindowElement.center().open();
}

把这个放在你的布局中
@(Html.Kendo().Window()
.Name("kwDialog")
.Title("Alert!")
.Modal(true)
.Visible(false)
)

关于kendo-ui - 如何在 Kendo Treeview 中嵌套 Kendo 窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16108447/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com