@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "CollegeSelector"; ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", Name = "CampusDropdown", ID = "CampusDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgCollegeList" } })
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" }, new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center , Handle="edit", Width=0.06 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 } }, IsCheckOnSelect = true, DataSourceUrl = Request["onlyCollege"] == "1" ? Url.Content("~/College/ListOnlyCollege") : Url.Content("~/College/List"), ID = "dgCollegeList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })