@model EMIS.ViewModel.UniversityView
@using EMIS.Web.Controls;
@using Bowin.Web.Controls.Mvc;
ControlExample
@Html.ComboGridFor(x => x.PropertyID, new ComboGridOptions {
TextField = "Name",
ValueField = "Code",
GridOptions = new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="UniversityID"},
new LinkButtonColumn { FieldName="Code", HeaderText="学校代码", Width=0.1, Align=AlignStyle.Center , Handle="edit" },
new BoundFieldColumn { FieldName="Name", HeaderText="学校名称", Width=0.3, Align=AlignStyle.Center },
new BoundFieldColumn { FieldName="EnglishName", HeaderText="英文名称", Width=0.1, Align=AlignStyle.Center },
new BoundFieldColumn { FieldName="SimpleName", HeaderText="学校简称", Width=0.1, Align=AlignStyle.Center },
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/University/List"),
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
}
})