I'm looking at a case where the "defaultValue" sort of initialization of a Model may not be sufficient. I wanted to try and hook in to Model's constructor process, but I'm not quite successful. I have a little example on the dojo that sets up the Model, a DataSource that uses it with a couple rows of data, and a grid that displays it.
It tries to use the "init" event handler inherited by kendo.data.Model from kendo.Class with my custom constructor function (MyConstructor). This works in that my constructor function gets called, and I can successfully manipulate the data record (available as "this"). But something about this seems to prevent the datasource from actually finishing up initializing the records with the actual data, even if I make no actual modifications in MyConstructor(). "id" and "description" have their default values, not those from the array of data records that you see when the init constructor does not run.
I do "kendo.data.Model.call(this)" to run the parent constructor from Model - perhaps something slightly different is needed? Or is there some other proper way to hook into model construction? It is for the "create" process on for a grid, so the model instance is created and bound to the edit template all internally in kendo code before I can get ahold of it via the grid's "edit" event.

Hi,
As my title says, I'm trying to execute a method/callback after the user has navigated to a new view (ie, month) as I'd like to make changes to the structure of the calendar in month view.
I see that the 'navigate' callback execute before the change, is there some way to execute a method after new view is loaded?
Thanks,
Grant

I have the following data representation displayed in a TreeList where there are two columns: Name and Creation Date. (Each Value entry is a child of the parent Item entry.)
Name - Creation Date
Item 1 - Jan 01, 2017
Value 1 - Jan 11, 2017
Value 3 - Jan 02, 2017
Value 2 - Jan 01, 2017
Item 2 - Dec 20, 2016
Value 2 - Dec 20, 2016
Value 1 - Dec 17, 2016
Value 3 - Dec 16, 2016
Item 3 - Nov 15, 2016
Value 3 - Nov 25, 2016
Value 1 - Nov 22, 2016
Value 2 - Nov 20, 2016
What do I need to do in order to sort by the Name value vs. the Creation Date so that it appears as follows:
Item 1 - Jan 01, 2017
Value 1 - Jan 11, 2017
Value 2 - Jan 01, 2017
Value 3 - Jan 02, 2017
Item 2 - Dec 20, 2016
Value 1 - Dec 17, 2016
Value 2 - Dec 20, 2016
Value 3 - Dec 16, 2016
Item 3 - Nov 15, 2016
Value 1 - Nov 22, 2016
Value 2 - Nov 20, 2016
Value 3 - Nov 25, 2016
No sort order is set in the TreeList markup; all the columns in the TreeList are sortable such that if I click the Name column header, the child rows are sorted appropriately.
If the resources dont fit the scheduler a vertical scroll appears (in case the scheduler is with fixed height).
Thats ok, but the issue is that the time and date headers widths start to miss their alighmen with the content columns ( more stronger over time. )
Here is the dojo http://dojo.telerik.com/eXUqI
Choose for example "Timeline week" and the scroll to the right.

I'd like to implement a custom icon in the header, which when clicked, shows a customizable menu (similar to the context menu in the Spreadsheet component).
Is there anything built in which can help me? If not can you please provide the code used to show the context menu in the spreadsheet).
Thanks!
I've included the bootstrap switch from here:
https://github.com/nostalgiaz/bootstrap-switch
If you know of an easier way to accomplish the same thing, I'm definitely open to that.
<input type="checkbox" data-bind="bootstrapSwitch: billingSettings.capsIncludeFees, events: {change: cpChanged}"/>Here's my markup in the view:
And then I have the following custom binding:
kendo.data.binders.bootstrapSwitch = kendo.data.Binder.extend({ init: function (element, bindings, options) { var x = this; kendo.data.Binder.fn.init.call(this, element, bindings, options); var that = this; $(that.element).bootstrapSwitch(); $(that.element).on('switchChange.bootstrapSwitch', function(event, state) { that.change(); }); }, refresh: function() { var that = this; var value = that.bindings["bootstrapSwitch"].get(); $(that.element).bootstrapSwitch("state", value); }, change: function () { if (this.bindings.events && this.bindings.events.change && this.bindings.events.change.parents) { var changeBinding = this.bindings.events.change; for (var i = 0; i < changeBinding.parents.length; i++) { var parentObservable = changeBinding.parents[i]; var method = changeBinding.path; //parentObservable[method](); } } var value = this.element.value === "on"; this.bindings["bootstrapSwitch"].set(value); }});But the custom binding doesn't actually change the property on my viewModel itself -- or fire the change event. I hit the breakpoints in my custom binding and can see that the "parents" within the bindings have the stuff I need, but not the "this" object itself.
If you have a better way to do what I'm after, let me know. Otherwise, can you help me figure out what is wrong with my custom binding?
Thanks in advance -
Erik
ps I tried setting up a snippet in the dojo for this, but couldn't figure out how to properly include bootstrap and the bootstrap switch. I can create a sample project on github if it becomes required.

I am using this method to iterate a range, however, the value parameter does not have a value attribute - it only has the prototype value.
I am populating the data using a webservice, and use AngularJS in my application.
Can you think of any reason I dont have the value attribute (the cells have data in)
Thanks
Marc!