kendo-ui

Kendo UI Foreign Key

房东的猫 提交于 2019-12-11 08:22:39
问题 I am new to Kendo UI and I got this problem. I don't understand, what are the basic steps in showing child object information in a column with a foreign key property. I mean, what do I have to do to create a foreign key column. It might be a silly question, but I saw a demo of foreign key on demos pages http://demos.telerik.com/kendo-ui/web/grid/foreignkeycolumn.html, still, I didn't quite get how does it work. Thanks, Vidmantas 回答1: Below is the MVC example for foreign key column demo: Its

How to set the Event Color in Kendo Scheduler

喜你入骨 提交于 2019-12-11 08:14:40
问题 I'm using the ASP.NET MVC Wrappers for Kendo UI and want to implement the Scheduler. As far as I gathered, the background color of an event is determined by the color of the first resource that the event uses. Is there a way to set the color when you are not using resources? 回答1: According to the documentation here: http://docs.kendoui.com/getting-started/web/scheduler/resources... If a resource instance has its color field set the scheduler will use this value as the background of all events

Treeview checkbox selection with graph updation is not working properly

孤街浪徒 提交于 2019-12-11 08:13:00
问题 In my project i have chart and treeview while pageload chart update is not working properly means here in treeview only two checkboxes are checked in pageload but chart is displaying all the field values.i need to display only checkbox checked field values in chart while pageload,( after page-load it's working fine). here is the fiddle: http://jsfiddle.net/RHh67/64/ My chart code: $("#myChart").kendoChart({ theme: $(document).data("kendoSkin") || "default", dataSource: { data: tmpData2, sort:

How to know what columns are visible whit Kendo Grid MVC

独自空忆成欢 提交于 2019-12-11 07:55:37
问题 i have a Kendo Grid whit "x" number of columns, but the user can hide the columns and i need know what columns are visible to export data only for these columns, i access to the columns in JS whit var columns = $("#grid").data("kedoGrid"); but it returns all columns not only the visibles. tankz 回答1: You can just get the list of columns by using this: var columns = $("#grid").data("kendoGrid").columns; The result will be an array of all column objects which has a property name hidden: true for

How can I re-check a checkbox in a kendo grid after sorting and filtering?

家住魔仙堡 提交于 2019-12-11 07:27:07
问题 I have a checkbox for each row within a kendo grid. If the user sorts or filters the grid, the checkmarks are cleared from the checkboxes. How can I prevent the checkboxes from unchecking or re-check them after the sort or filter occurs? Please refer to the following js fiddle to observe the behavior during sorting: http://jsfiddle.net/e6shF/33/ Here's the code on the jsfiddle for reference (...needed to ask this question): $('#grid').kendoGrid({ dataSource: { data: [{id:3, test:'row check

Unable to format date with KendoUI Grid and Knockout-Kendo

[亡魂溺海] 提交于 2019-12-11 07:24:25
问题 I am having trouble getting a date to parse with the Kendo Grid. I am using Knockout-Kendo to assist with the data-bindings. The date-string in the json response that I am attempting to parse looks something like 2012-03-13T00:00:00 . The column definition for the Kendo grid contains format: '{0:MM/dd/yyyy}' which seems to work on another grid that isn't using Knockout-Kendo to parse the exact same date string. I have created (well re-using from a separate question) a jsFiddle that

Kendo-Knockout: Window does not close correctly

冷暖自知 提交于 2019-12-11 07:08:33
问题 I am using RPNiemeyer kendo-knockout library. I have a grid. When the user clicks on a row of grid a pop up window is showed. When You close the window and open it again in the same way the application freezes with the closing animation. I tried as much as I can to reproduce this scenario in fiddle. In fiddle when You close the pop up window and click on the row again nothing happens and the browser is reloaded. I strongly believe that something similar is happening in my application. html:

kendo-ui notification scope variable not set in Angular controller

北慕城南 提交于 2019-12-11 07:04:10
问题 I've noticed this issue with other kendo-ui controls, but I'll ask specifically about kendo-notification. My html has: <span kendo-notification="vm.notifier"></span> <button ng-click="vm.push()">Push it</button> In my controller I have: (function () { 'use strict'; angular .module('app.layout') .controller('Shell', Shell); function Shell() { /*jshint validthis: true */ var vm = this; vm.push = push; activate(); function activate() { vm.notifier.show('Loaded', 'info'); } function push() { vm

Set the selected text or value for a KendoDropDownList

╄→尐↘猪︶ㄣ 提交于 2019-12-11 06:58:10
问题 I'm using Durandal and Kendo UI. My current problem is the edit popup event on my grid. I cannot seem to set the selected value on my dropdown. I can debug and inspect, and I indeed do see the correct value of e.model.InstrumentName nicely populated. How can I set the value/text of those dropdowns in edit mode ? Here's my grid init: positGrid = $("#positGrid").kendoGrid({ dataSource: datasource, columnMenu: false, { field: "portfolioName", title: "Portfolio Name", editor:

kendo ui multiselect remove delete action

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 06:37:05
问题 How can i restrict users from deleting the already saved items in the Multi select widget. Users should not be able to delete existing values but can add or remove the new values. The solution i tried was on databound remove the delete icon like below. It gets deleted but comes back after the call executes the databound method. Any ideas? onDataBound: function (e) { e.preventDefault(); $(e.sender.tagList).find("li span.k-delete").remove(); } This is the code in the view which calls the above