123456789101112131415161718192021222324252627282930313233343536 |
- @model EMIS.ViewModel.UniversityView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>ControlExample</title>
- </head>
- <body>
- <div>
- @Html.ComboGridFor(x => x.PropertyID, new ComboGridOptions {
- TextField = "Name",
- ValueField = "Code",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- }
- })
- </div>
- </body>
- </html>
|