or
AssignedDrafter: { type: "number", nullable: true }field: "AssignedDrafter", title: "Assigned Drafter", width: 175, values: ARS.kendoHelpers.makeValues(amplify.store(ARS.ls.config.Types.ActiveEmployees), "FullName", "EmployeeID")<div class="col-xs-6"> <div class="col-xs-4"> <label for="AssignedDrafter" class="labelCenter">Assigned Drafter</label> <span class="k-invalid-msg" data-for="AssignedDrafter" /> </div> <div class="col-xs-8"> <input name="AssignedDrafter" data-text-field="text" data-value-field="value" data-bind="value:AssignedDrafter, source: activeEmployeeValues" data-role="dropdownlist" class="maxwidth"/> </div> </div>@(Html.Kendo().Grid<NursingHomeStock.Models.ResidentViewModel>() .Name("AvailablePlaceTypesGrid") .Columns(columns => { columns.Bound(rvm => rvm.FirstName).Filterable(f => f.Extra(false).Operators(o => o.ForString(fs => fs.Clear().Contains(GlobalResources.Contains)))); columns.Bound(rvm => rvm.LastName).Filterable(f => f.Extra(false).Operators(o => o.ForString(fs => fs.Clear().Contains(GlobalResources.Contains)))); columns.Bound(rvm => rvm.Sex) .ClientTemplate("#if (Sex == 1) { #" + GlobalResources.Male + "#} else if (Sex == 2) { #" + GlobalResources.Female + "# } #") .EditorTemplateName("DropDownListSex").Filterable(f => f.Extra(false).Operators(o => o.ForString(fs => fs.Clear().Contains(GlobalResources.Contains)))); columns.Bound(rvm => rvm.BirthDate).Format("{0:dd.MM.yyyy}").EditorTemplateName("Date").Filterable(f => f.Extra(false)); columns.Bound(rvm => rvm.SocialSecurityNumber).Filterable(f => f.Extra(false).Operators(o => o.ForString(fs => fs.Clear().Contains(GlobalResources.Contains)))); columns.Bound(rvm => rvm.Comment).Filterable(f => f.Extra(false).Operators(o => o.ForString(fs => fs.Clear().Contains(GlobalResources.Contains)))); columns.Command(command => command.Destroy().Text(GlobalResources.Delete)); }) .ToolBar(toolbar => { toolbar.Create().Text(GlobalResources.Create); toolbar.Save().CancelText(GlobalResources.Cancel).SaveText(GlobalResources.Save); toolbar.Excel().Text(GlobalResources.ExcelExport); }) .Editable(editable => editable.Mode(GridEditMode.InCell)) .Pageable(pageable => pageable .Refresh(true) .PageSizes(new []{ 5, 10, 20, 50, 100}) .ButtonCount(5)) // TODO: set default filter operator to [contains] .Filterable() .Navigatable() // Tabulator Support .Sortable() .ClientDetailTemplateId("ResidenceGrid") .DataSource(dataSource => dataSource .Ajax() .Batch(true) .Events(events => events .Error("App.errorHandler") ) .Model(model => { model.Id(e => e.Id); model.Field(e => e.Id).DefaultValue(Guid.NewGuid()); }) .Sort(sort => sort.Add("LastName").Ascending()) .Read(read => read.Action("ReadResident", "Resident", new { ViewBag.nursingHomeId })) .Update(update => update.Action("UpdateResident", "Resident")) .Create(create => create.Action("CreateResident", "Resident", new { ViewBag.nursingHomeId })) .Destroy(destroy => destroy.Action("DestroyResident", "Resident")) ) .Events(events => events.DataBound("App.Resident.dataBoundResidenceGrid")))<body><div><textarea id="editor" style="width:100px;height:100px;"></textarea><script>$(document).ready(function() { $("#editor").kendoEditor( { encoded: false } ); } );</script></div></body>Fiddle with error:
http://dojo.telerik.com/uGaqa/3
1) Run the fiddle in latest Google Chrome (for now it is 39.0.2171.71)
2) Click on calendar icon. Datepicker is shown.
3) Click on month year ("December 2014") in the datepicker title. The title changes to year "2014".
4) Click on year in the title ("2014"). Check the datepicker view.
Actual result:
There's javascript error in console: Uncaught TypeError: Cannot read property 'left' of undefined;
Second datepicker window is wrongly shown;
Second datepicker window doesn't disappear even after toggling the datepicker;
Expected result: Date picker changes its view to year selection; no errors in console; datepicker's view should not be broken.