|
@Html.ContextMenuBar("Edit-TeacherGrid")
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn { FieldName="UserID", HeaderText="" },
new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 },
new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, Width=0.06,
DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, IsRequired=true }
},
PageSize = 3,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/OptionalCourseSetting/TeacherList?executableOptionalCourseID=" + Model.ExecutableOptionalCourseID),
IsPostBack = true,
ID = "dgTeacherList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
MaxHeight = 65
})
|