or

@(Html.Kendo().Menu() .Name("viewTypeMenu") .HighlightPath(false) .BindTo(Model.ViewTypeLabels, (item, value) => { item.Text = value; item.Selected = (value == Model.SelectedViewTypeLabel); }))@(Html.Kendo().Scheduler<Dansinn.Models.Event>() .Name("scheduler") .Height(600) .Messages(messages => { messages.Save(LocalizationResources.OK); messages.Cancel(LocalizationResources.Cancel); }) .Views(views => { views.DayView(); views.WeekView(weekView => weekView.Selected(true)); views.MonthView(); views.AgendaView(); }) .Timezone("Etc/UTC") .Editable(editable => editable.TemplateName("Event").Resize(false)) .DataSource(builder => { builder.Events(events => { events.Error("bs.kendo.scheduler.onError"); events.RequestEnd("bs.kendo.onRequestEnd"); }); builder.Create(operationBuilder => operationBuilder.Action<ScheduleController>(controller => controller.Create(null))); builder.Update(operationBuilder => operationBuilder.Action<ScheduleController>(controller => controller.Update(null))); builder.Destroy(operationBuilder => operationBuilder.Action<ScheduleController>(controller => controller.Remove(null))); builder.Read(operationBuilder => operationBuilder.Action<ScheduleController>(controller => controller.Get(null))); builder.Model(factory => { factory.Id(model => model.Id); factory.Field(model => model.Type); factory.Field(model => model.Start); factory.Field(model => model.End); factory.Field(model => model.Title); factory.Field(model => model.RecurrenceRule); factory.Field(model => model.RecurrenceException); factory.Field(model => model.Description); factory.Field(model => model.IsAllDay); }); }))
public ActionResult Index() { return View(GetQueueItems()); }
private static IEnumerable<TmpQueueModel> GetQueueItems() { IList<TmpQueueModel> ieTmpQueueModel = null; TmpQueueModel tmpQueueModel = null; try { DataSet dsQueue = new DataSet(); dsQueue.ReadXml("\\App_Data\\Queue.xml");
if (dsQueue.Tables[0].Rows.Count > 0) { ieTmpQueueModel = new List<TmpQueueModel>(); foreach (DataRow dr in dsQueue.Tables[0].Rows) { tmpQueueModel = new TmpQueueModel(); tmpQueueModel.Action = dr["Action"].ToString(); //tmpQueueModel.AssignedDate = dr["AssignedDate"].ToString(); //tmpQueueModel.AssignedTo = dr["AssignedTo"].ToString(); // tmpQueueModel.Comment = dr["Comment"].ToString(); tmpQueueModel.ConsumerFirstName = dr["ConsumerFirstName"].ToString(); tmpQueueModel.ConsumerId = dr["ConsumerId"].ToString(); tmpQueueModel.ConsumerLastName = dr["ConsumerLastName"].ToString(); tmpQueueModel.ExternalReferenceID = dr["ExternalReferenceID"].ToString(); tmpQueueModel.First_Name = dr["First_Name"].ToString(); //tmpQueueModel.IsReserved = (bool)dr["IsReserved"]; tmpQueueModel.Last_Modified_Date_and_Time = dr["Last_Modified_Date_and_Time"].ToString(); tmpQueueModel.Last_Name = dr["Last_Name"].ToString(); tmpQueueModel.LastModifiedBy = dr["LastModifiedBy"].ToString(); tmpQueueModel.Medicaid_No_ = dr["Medicaid_No_"].ToString(); tmpQueueModel.No_ = dr["No_"].ToString(); tmpQueueModel.PacketReceivedDate = dr["PacketReceivedDate"].ToString(); //tmpQueueModel.QueueHistoryDate = Convert.ToDateTime(dr["QueueHistoryDate"]); tmpQueueModel.QueueId = Convert.ToInt32( dr["QueueId"]); //tmpQueueModel.QueueStatus = dr["QueueStatusId"].ToString(); ieTmpQueueModel.Add(tmpQueueModel); } } return ieTmpQueueModel; } catch { return null; } }
public ActionResult QueueItems_Read([DataSourceRequest] DataSourceRequest request) { return Json(GetQueueItems().ToDataSourceResult(request)); }@model IEnumerable<GenericQueue.Models.TmpQueueModel>
@(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => { columns.Bound(p => p.ConsumerId).Groupable(false); columns.Bound(p => p.PacketReceivedDate); columns.Bound(p => p.First_Name ); columns.Bound(p => p.Last_Name); }) .Groupable() .Pageable() .Sortable() .Scrollable() .Filterable() .DataSource(dataSource => dataSource .Ajax() .PageSize(5) .Read(read => read.Action("QueueItems_Read", "Grid")) ))<script id="paneTemplate" type="text/kendo-tmpl"> @(Html.Kendo().Grid<AWSQBCC.Models.Pane>() .Name("Panes_#=LiteId#") .Columns(columns => { //columns.Bound(p => p.PaneId); columns.Bound(p => p.Sequence); columns.Bound(p => p.LiteId).Hidden(); columns.ForeignKey(p => p.GlassId, (System.Collections.IEnumerable)ViewData["glasses"], "GlassId", "GlassType").Title("Glass Type"); columns.Command(command => { command.Edit(); command.Destroy(); }); }) .DataSource(dataSource => dataSource .Ajax() .Sort(sort => { sort.Add(p => p.Sequence); }) .Read(read => read.Action("Pane_Read", "Lite", new { id = "#=LiteId#" })) .Destroy(destroy => destroy.Action("Pane_Delete", "Lite")) .Update(update => update.Action("Pane_Update", "Lite")) .Create(create => create.Action("Pane_Create", "Lite", new { id = "#=LiteId#" })) .Model(model => { model.Id(p => p.PaneId); model.Field(p => p.PaneId).Editable(false); model.Field(p => p.LiteId).Editable(false); model.Field(p => p.GlassId); }) .Events(events => { events.Error("error"); }) ) .ToolBar(commands => commands.Create()) .Editable(editable => editable.Mode(GridEditMode.InLine)) //.Events(events => events.DataBound("refresh")) .ToClientTemplate())</script>[Required][DisplayName("Domain")][MaxLength(100)][UIHint("WorkflowRoles")]public string Domain { get; set; }[DisplayName("Roles")][UIHint("WorkflowRoles")][Required]public virtual ICollection<Role> Roles { get; set; }@(Html.Telerik().ComboBox().Name("CbPlants") ... ... .HtmlAttributes(new { style = "z-index: 20; width: 250px;" }) .DropDownHtmlAttributes(new { style = "width: 400px;" }) )