@{
reModel rm = new reModel();
IList<ReRoomType> types = rm.ReRoomTypes.ToList();
foreach( ReRoomType type in types)
{
<li><a href="#" onclick="showDetail(@type.PKiRoomTypeID)">@type.SRoomTypeName</a></li>
}
}
@(Html.Kendo().Window()
.Name("window")
.Title("Detail Information")
.Content("")
.Draggable()
.Resizable()
.Width(600)
.Actions(actions => actions.Refresh().Maximize().Close())
)
<script type="text/javascript">
function showDetail(id)
{
$(document).ready(function () {
$("#window").data("kendoWindow").center();
$("#window").data("kendoWindow").open();
});
}
</script>
这就是我所做的全部内容,现在我如何将 ID 或名称等内容从列表传递到窗口
提前致谢