kendo-ui

KendoGrid/Angular: cannot create grid columns/data dynamically

此生再无相见时 提交于 2019-12-12 16:18:18
问题 In this plunk I have an empty grid (without columns). When I click on "Build Grid" I need to add columns (taken from an array) and also add a row to the table. The problem is that the columns are not added to the grid, any ideas? If I try to refresh the grid, I get an undefined error. HTML: <button ng-click="buildGrid()">Build Grid</button> <div kendo-grid="grid" k-options="gridOptions" k-data-source="ds"></div> Javascript: var app = angular.module("app", [ "kendo.directives" ]); function

Angular Kendo Drop down

主宰稳场 提交于 2019-12-12 16:08:55
问题 I am using angular-kendo ui for a number of components but have encountered an issue which I can't seem to resolve. I have the following angular select which works fine and binds the selected value to the ng-model correctly. <select ng-model="link.CompanyId" ng-options="obj.Id as obj.Name for obj in link.PossibleCompanies"></select> Then I add the kendo-drop-down-list argument to convert it to a Kendo DD and it stops binding the selected value of ng-model. <select kendo-drop-down-list ng

How to get selected value of Kendo UI Editor content

有些话、适合烂在心里 提交于 2019-12-12 16:00:25
问题 I need insert custom editor tool for inserting links into rich text. It should work as basic link insert in editor but in dialog window I need treeview with our documents structure for select target of link. Please can you help me with syntax for get selected text of editor content? Best regards David 回答1: To get selected text from the Kendo Editor you can use GetRange() method. Syntax is following.(http://docs.kendoui.com/api/web/editor#methods-getRange) http://jsfiddle.net/vojtiik/Sgtxk/1/

Kendo UI Tooltip on show, access target?

谁说我不能喝 提交于 2019-12-12 15:46:41
问题 The target is accessible by passing the argument e to the anonymous function for content. gridToolTipz = $('#grid').kendoTooltip({ filter: "td[role=gridcell]", content: function (e) { var target = e.target; // the element for which the tooltip is shown ... }, show: function(e) { var target = e.target; // the element for which the tooltip is shown ... } }); Is it possible to achieve the same thing on show? The above code doesn't work. 回答1: You can always access the target element by calling

How to get intellisense working for Kendo UI?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 15:42:34
问题 I'm just starting out with a trial of Kendo UI (2014 Q1), in Visual Studio 2013. I am following one of the walkthrough tutorials, and while the code runs fine, I'm not getting Intellisense for the Kendo objects the way I would expect. Where's the secret switch to get intellisense working? 回答1: Did you verify that the kendo.web.min.intellisense.js file is present in the folder which hosts kendo.web.min.js? I used directions from this topic for my kendo ui projects. 来源: https://stackoverflow

How to change pageable messages of kendo grid in razor?

好久不见. 提交于 2019-12-12 14:36:04
问题 I found in javascript but i could't manage to do it. Can anyone say how "display" will be in razor? pageable: { messages: { display: "{0} - {1} of {2} items", //{0} is the index of the first record on the page, {1} - index of the last record on the page, {2} is the total amount of records empty: "No items to display", page: "Page", of: "of {0}", //{0} is total amount of pages itemsPerPage: "items per page", first: "Go to the first page", previous: "Go to the previous page", next: "Go to the

Cannot select text in Kendo Sortable with handle

只谈情不闲聊 提交于 2019-12-12 14:33:14
问题 I have a set of sortable widgets, very similar to this demo. JS inits here: var column1Sortable = $(column1Selector).kendoSortable({ filter: ".panel", cursor: "move", handler: ".panel-header", connectWith: column2Selector, change: sortableOnChange, placeholder: sortablePlaceholder, hint: sortableHint }).data("kendoSortable"); var column2Sortable = $(column2Selector).kendoSortable({ filter: ".panel", cursor: "move", handler: ".panel-header", connectWith: column1Selector, change:

Validation message is not working properly for datetimepicker?

你离开我真会死。 提交于 2019-12-12 13:17:23
问题 Here issue is to validate the datetimepicker and reset the values after page load. In pageload validation is working properly but datetimepickers values are not reset. After pageload having the both the issues values are not reset and validation is not working. Here is the fiddle: http://jsfiddle.net/XHW3w/6/ enter code here:$("#filter-msg").kendoWindow({ modal: true, visible: false }); $("#reset").click(function () { $("#datetimepicker1").val(''); $("#datetimepicker2").val(''); }); $("

Kendo UI Treeview and JSON

核能气质少年 提交于 2019-12-12 13:15:46
问题 So I want to create a Tree with kendo UI treeview item and bind it to a remote Hierarchical Data Source being a JSON file. I want the resulting tree to be something like: (Vehicles) --(Cars) ----FM-1100 ----FM-4200 --(Bikes) ----FM-3100 (Personnel) --(Clients) ----GH-3000 --(VIPs) ----GH-3100 PS. Names in () are supposed to be something like folders containing their "children" I've checked the documentation about all the above in the kendo ui website but I'm a bit confused with the whole

Kendo UI MVVM with TypeScript - Making ViewModels as “classes”

耗尽温柔 提交于 2019-12-12 12:42:10
问题 I am transitioning over a project to Typescript, and it uses Kendo UI's MVVM architecture. However I am having a bit of a problem with the concept of classes and its relationship to the view models. I will establish a class and extend kendo.data.ObservableObject , which is what you create a view model from, and populate it with my fields, like this. export class ViewModelSample extends kendo.data.ObservableObject { Id: string = null; Name: string = null; Items: kendo.data.ObservableArray = []