
- 积分
- 130
- 在线时间
- 438 小时
- 主题
- 38
- 注册时间
- 2014-2-15
- 帖子
- 210
- 最后登录
- 2020-11-8

- 帖子
- 210
- 软币
- 2538
- 在线时间
- 438 小时
- 注册时间
- 2014-2-15
|
本帖最后由 人工智能 于 2015-6-2 09:15 编辑
在非EditorTempaltes可以默认选中。
@{
Layout = null;
}
@model TelerikMvcAppCallCenter.Models.Bulletin
<!DOCTYPE html>
<html>
<head>
<title>BulletinEditor</title>
<style>
.k-edit-buttons {
width:760px;
bottom:0px;
}
#substance {
width:760px;
}
</style>
</head>
<body>
<div id="title" style="padding:10px;">
@Html.Label(Model.Title);
@Html.Label("公告标题:")
@Html.TextBoxFor(c => c.Title, new {@class="k-textbox" })
@Html.Label("优先级别:")
@(Html.Kendo().ComboBox()
.Name("fabric")
.Filter("contains")
.Placeholder("选择优先级...")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "低", Value = "0"
},
new SelectListItem() {
Text = "中", Value = "1"
},
new SelectListItem() {
Text = "高", Value = "2"
}
})
.SelectedIndex(2).Value("2")
)
</div>
</body>
</html>
|
|