or
@model Umki2.Areas.Fbr.Models.FbrFitUp @(Html.Kendo().DatePicker() .Name("FitUpDate") .Value("10/10/2011") .HtmlAttributes(new { style = "width:150px" }) )function OpenFitUpForm(e) { e.preventDefault(); var dataItem = this.dataItem($(e.currentTarget).closest("tr")); var wnd = $("#PopUpForm").data("kendoWindow"); $("#PopUpForm").kendoWindow({ content: { url: "/wlb/wlbexplorer/_FitUpForm", data: { id: dataItem.Id }, }, width: 500, title: "FitUp Report", modal: true, visible: false, draggable: true, }); wnd.center().open(); }
@(Html.Kendo().Scheduler<SchedulerViewModel>() .Name("scheduler") .Views(views => { views.DayView(); views.WeekView(); views.MonthView(monthView => monthView.Selected(true)); }) .Resources(resource => { resource.Add(r => r.RegionIds) .Name("RegionsResource") .Title("RegionsRes") .DataTextField("RegionName") .DataValueField("RegionId") .Multiple(true) .DataSource(source => { source.Read(read => { read.Action("RegionDropDownList", "DropDownList"); }); }); resource.Add(v => v.VenueId) .Name("VenuesResource") .Title("VenueRes") .DataTextField("VenueName") .DataValueField("VenueId") .BindTo((IEnumerable<VenueViewModel_DDL>)ViewData["Venues"]); } ) .DataSource(d => d.Model(m => { m.Id(f => f.EventId); m.Field(f => f.Title).DefaultValue("No title"); m.RecurrenceId(f => f.RecurrenceID); m.Field(f => f.IsAllDay).DefaultValue(false); }) .Read("Read", "Scheduler") .Create("Create", "Scheduler") .Destroy("Destroy", "Scheduler") .Update("Update", "Scheduler") .Events(e => e.Error("error_handler")) ) .Editable(true) )@(Html.Kendo().Grid<Umki2.Areas.Wlb.ViewModels.VmWlbWeldLogBook>() .Name("grid") .Columns(columns => { columns.Bound(c => c.JointNo).Width(140); columns.Bound(c => c.WlbJointLocation).Width(190); columns.Command(command => command.Custom("FitUp").Click("showDetails")); }) .HtmlAttributes(new { style = "height: 380px;" }) .Scrollable() .Groupable() .Sortable() .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5)) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("Grid_Read", "WlbExplorer")) ))@(Html.Kendo().Window().Name("Details") .Title("Customer Details") .Visible(false) .Modal(true) .Draggable(true) .Width(300))<script type="text/x-kendo-template" id="template"> <div id="details-container"> <h2>#= JointNo # #= JointNo #</h2> <em>#= WlbJointLocation #</em> <dl> <dt>City: #= WlbJointLocation #</dt> <dt>Address: #= WlbJointLocation #</dt> </dl> </div></script><script type="text/javascript"> var detailsTemplate = kendo.template($("#template").html()); function showDetails(e) { e.preventDefault(); var dataItem = this.dataItem($(e.currentTarget).closest("tr")); var wnd = $("#Details").data("kendoWindow"); wnd.content(detailsTemplate(dataItem)); wnd.center().open(); }</script>@(Html.Kendo().TreeView() .Name("fao") .HtmlAttributes(new {@class="fixed-height" }) .DataTextField("Text") .TemplateId("treeview-item-template") .DataSource(ds => ds .Read(r => r .Action("_ModuleData", "Home") ) .Model(m => m .Children("Items") .HasChildren("HasChildren") ) ))<script id="treeview-item-template" type="text/kendo-ui-template"> #= item.Text #<input type='hidden' class='hidden-data' data-fal='#= item.Fal#' data-uid='#=item.uid#'/></script>function doSomething(e){ for(n=0; n<e.node.nodes.length; n++) { doSomethingElse(e.node.nodes[n]); }}