Hello,
I am trying to center a kendo window using MVVM
<div data-role="window" data-modal="true" data-position="{top: '50%', left: '50%'}" data-title="Setup" data-width="600" data-height="350" data-bind="events: { open: onWindowOpened }">
that.viewModel = kendo.observable({
onWindowOpened: function (e) {
console.log("test");
}
});
I can't get open event working. probably i can do it from there. Also with data-position set as attribute I cannot substract 50% - 300 and 50% - 175 to center the window. Please advice me.
Thanks.
Browser IE11.
I check ListView and Grid controls.
In Edge, IE9 and IE8 mods all work correct. In IE10 mode selection not work. Row in Grid and item in ListView can not be selected and Change events not fire.
But! In DatePicker and TimePicker I can select value (day and time).
Why this can happen?
The command setOptions broke custom column editor, here you can check simple exaple http://dojo.telerik.com/UsAGi
So I need to setup custom editor after grid state was restored. Please advise if there any way to do this.

legend: { visible: true, position: "top", margin: 5, padding: 2, font: "8px Arial"}legend: { visible: true, position: "top", margin: 5, padding: 2, labels: { font: "10px Verdana" }}How do I set the background colour of a row? I have the following code for iterating through the rows but am unsure how to set a css class on the row.
var items = grid.dataSource.data();
for (var i = 0; i < items.length; i++) {
if (items[i].dueDate != undefined && items[i].dueDate < today) {
// make row background colour red
}
}

Version 2015.1.521
When calling editCell or addRow on a grid I noticed that after the call current() is returning undefined. Shouldn't it return the currently focused cell?
Based on the information in this post:
http://www.telerik.com/blogs/telerik-kendo-ui-q1-2015-has-landed
where it is quoted as:
Grid and TreeList: Both widgets integrate a responsive pager ,which automatically adjusts on different screen widths and provides the ability to define which columns to be hidden on small view ports. This makes them more flexible for mobile web usage.
It makes sense that you are talking about both the responsive pager and also the minScreenWidth feature. I am trying to get minScreenWidth working on the TreeList, but am unable to do so and in the docs it is not mentioned.
Sounds like a feature that has not yet been implemented and is very misleading. Please let me know what the case is.
Thanks,
--Ed
Hi,
I just started using Kendo. I am trying to bind data from AngularJs service to a TreeView without any success. Here is my AngularJs service code:
angular.module('testModule', []).service('testService', ['$q', '$http', '$window', function ($q, $http, $window) { return { get: get }; function get() { var url = $window.location.origin + '/api/testData'; return $http.get(url).then(handleSuccess, handleError); } function handleSuccess(response) { return response.data; } function handleError(response) { if (!angular.isObject(response.data) || !response.data.message) { return $q.reject('An unknown error occurred.'); } return $q.reject(response.data.message); } } ]);Here is my AngularJs controller:
angular.module('testModule') .controller('testCtrl', ['$scope', '$q', '$window', 'testService', function ($scope, $q, $window, testService ) { $scope.testDataFromSvc = {data:[]}; function loadRemoteData() { testService.get().then(function (data) { $scope.testDataFromSvc.data = data; }); } $scope.something = { data: [{ Name: "Thing 1", id: 1 }, { Name: "Thing 2", id: 2 }, { Name: "Thing 3", id: 3}] }; $scope.things = { dataSource: $scope.testDataFromSvc //Doesn't work? What should go here? }; $scope.things2 = { dataSource: $scope.something //this works };} ]);
Here is my html:
<div ng-app="testModule" ng-controller="testCtrl"> <div kendo-tree-view="tree" k-options="things"> //this doesn't display anything <span k-template> {{dataItem.Name}} </span> </div> <div kendo-tree-view="tree" k-options="things2"> // this works <span k-template> {{dataItem.Name}} </span> </div> </div>I checked the data in the "testDataFromSvc" looks similar to what is in "something". At one point it looked like, it displayed the correct data but now I can reproduce it. What is the right way to use the data returned by AngularJs service? Any help is greatly appreciated.
Thanks,
-ana