angular-kendo

Kendo Angular multiselect set selected values

拜拜、爱过 提交于 2019-12-10 23:06:19
问题 I´m using Kendo multiselect with Angular-Kendo directives and with remote datasource. I´m trying to set the selected items when the application starts but with no luck. Can anyone please help me? See Code here: JS Bin 回答1: You can just make a custom directive, and pass in the items you want selected beforehand to the value attribute of the multiselect directive, have a look at this Plunk to see the directive I use. 回答2: You have to hook into the on change event directive and send the

Binding date value to ng-model in angular kendo date picker

匆匆过客 提交于 2019-12-04 11:32:15
问题 I have an api which return the date in this format "014-08-26T15:10:45.402Z" i am using angular kendo ui .The problem i am facing is the date is not getting bound to the kendo date picker.Could someone help me out . <input kendo-date-picker ng-model="emp.datestart" k-format="MM/dd/yyyy" /> 回答1: In order to have the Kendo DatePicker working with a string date value model you need: 1) Use k-ng-model instead of ng-model. 2) Tell the widget in which exact format the date will be parsed. <input

How to populate Kendo grid with an angular $http GET call

徘徊边缘 提交于 2019-12-03 07:56:06
问题 I'm having trouble binding a Kendo grid to an angular service call. I have an angular $http service that has a getData() method which looks like this: 'use-strict'; payrollApp.factory('dataService', function ($http, $q) { return { getData: function () { var deferred = $q.defer(); $http({ method: 'GET', url: '/api/apihome/', }).success(function (data, status, headers, config) { deferred.resolve(data); }).error(function (data, status, headers, config) { deferred.reject(status); }); return

How to populate Kendo grid with an angular $http GET call

佐手、 提交于 2019-12-02 21:22:13
I'm having trouble binding a Kendo grid to an angular service call. I have an angular $http service that has a getData() method which looks like this: 'use-strict'; payrollApp.factory('dataService', function ($http, $q) { return { getData: function () { var deferred = $q.defer(); $http({ method: 'GET', url: '/api/apihome/', }).success(function (data, status, headers, config) { deferred.resolve(data); }).error(function (data, status, headers, config) { deferred.reject(status); }); return deferred.promise; }, }; }); I then set the grids DataSource in my controller as follows: 'use-strict';

Changing Angular model to update Kendo

杀马特。学长 韩版系。学妹 提交于 2019-12-01 11:28:51
I've been using Angular for a project and just recently found out about the Kendo-Angular project over at http://kendo-labs.github.io/angular-kendo/#/ . I was successful in adding Angular-Kendo into my project and it's working like I think it should with the exception of updating models like I'm used to. This project is exactly what I am looking for, however, no examples in the documentation actually show you being able to update an Angular model so it updates a Kendo data source. Here is a piece of code for example: $scope.data = new kendo.data.DataSource({ data: [{ name: "India", data: [10,

Angular-Kendo ComboBox placeholder text not working

两盒软妹~` 提交于 2019-11-30 05:15:00
问题 I have a simple angular-kendo ComboBox on a page without an initially selected value. It should show the placeholder text in that case, but instead it's showing ? undefined:undefined ? HTML <select kendo-combo-box ng-model="Project" k-options='projectOptions'></select> JS app.controller('MyCtrl', function($scope) { $scope.projectData = [ {name: 'Bob', value: 1}, {name: 'Tom', value: 2} ]; $scope.projectOptions = { placeholder: "'Select...'", dataTextField: 'name', dataValueField: 'value',

Kendo scheduler resources paging

做~自己de王妃 提交于 2019-11-29 13:03:14
in kendo scheduler control am using group header template and would like to make a paging in my resources view http://dojo.telerik.com/IMUjA this example has 2 only resources if I would like to add 2 another resources I want to show only 2 resources per page and would like to have next/prev buttons to change resources viewed as paging in scheduler displaying I want something such as the example I made in this link: dojo.telerik.com/uBigO/4 I would like to control my resources to view configured number of the resources cause the pagination method is not supported in Kendo scheduler as a feature