kendo-ui

KendoUI - DataViz - Grouping and Aggregating a JSON datasource within the chart

╄→尐↘猪︶ㄣ 提交于 2019-12-24 02:13:08
问题 I've been able to accomplish such grouping in certain charts and not others. For example, assume that I have a datasource that looks something like this: var pictures = [ { type: "JPG", len: 20, wid: 15, appr: 17.5, count: 2 }, { type: "JPG", len: 22, wid: 17, appr: 12.5, count: 3 }, { type: "JPG", len: 24, wid: 15, appr: 10.5, count: 1 }, { type: "JPG", len: 22, wid: 4, appr: 17.5, count: 6 }, { type: "PNG", len: 20, wid: 15, appr: 17.5, count: 4 }, { type: "PNG", len: 25, wid: 7, appr: 9.5,

How to add custom keyboard navigation between editable cells in Kendo Grid

蓝咒 提交于 2019-12-24 02:00:48
问题 As a continuation of this Question and Answer: How do I implement a custom keypress handler for a Kendo Grid enabling the following: Arrow Keys navigate up and down rows The Cell contents are saved to the grid when navigating away The next Cell's editor is opened 回答1: I'll answer my own question with information found in the question in the Question, this question, the kendo.grid.js source, and my own experimentation. If anyone else has a better solution, I'll happily accept it instead. //

Knockout Kendo dropdownlist get text of selected item

情到浓时终转凉″ 提交于 2019-12-24 01:57:18
问题 My application is MVC 5. I am using the following Knockout Kendo dropdownlist: <input data-bind="kendoDropDownList: { dataTextField: 'name', dataValueField: 'id', data: foodgroups, value: foodgroup }" /> <hr /> Selected: <strong data-bind="text: foodgroup"> </strong> <script> var ViewModel = function () { var self = this; this.foodgroups = ko.observableArray([ { id: "1", name: "apple" }, { id: "2", name: "orange" }, { id: "3", name: "banana" } ]); var foodgroup = { name: self.name, id: self

Is it possible to set a direction for the Kendo DatePicker (Calendar)?

流过昼夜 提交于 2019-12-24 01:43:13
问题 I have a calendar input on the bottom of a form. When the user clicks on it, the calendar pops up bellow the input creating scroll bars. Is there any way I can set the direction that a DatePicker will open? For instance... left, right, above? Here's my code: $("#dpBirthDate").kendoDatePicker(); Thanks 回答1: Yes and no. You can edit the popup origin and position like this: $("#date").kendoDatePicker({ origin: "top left", position: "bottom left", animation: { open: { effects: "slideIn:up" } } })

Kendo UI Timepicker custom interval format

孤街醉人 提交于 2019-12-24 01:43:07
问题 What i'm looking to do with the kendoTimePicker is have the 30 minute interval for all times leading up to 11:30PM, but after 11:30 display all subsequent times up to 12AM in minute interval. Not sure if this control supports it. Basically looking to have something like this: 10:30 PM 11:00 PM 11:30 PM 11:31 PM 11:32 PM 11:33 PM ..etc 回答1: The only way I could think of doing it is to manually change the list of times in the dropdown. Kendo just dynamically adds a <ul> to your page that is

How to prompt user that edits have been made upon changing pages or sorting in Kendo Grid

别等时光非礼了梦想. 提交于 2019-12-24 01:39:49
问题 I have run into an issue with the kendo-ui grid that I can't solve. In my application I am using kendo-grid in batch edit mode to allow a data entry person to quickly make edits to several records on a screen. This particular grid is set to allow paging and sorting. I am looking for a way to prompt the user upon attempting a sort or clicking on one of the paging links while there have been edits made on the particular page (as in page of the datagrid/datasource). If the user clicks OK, then I

Conditionals embedded in client templates in kendo ui MVC grid (server)

依然范特西╮ 提交于 2019-12-24 00:35:37
问题 Inside a Kendo Grid, I'd like to display a link to the user if manager is not assigned , else display the name of manager already assigned . as the manager can be null, I'm having success getting this link to only show when the manager is not null. but problem is if manager is not null how to diaplay the manager name in else part Below is the client template I'm trying to use: @(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => { columns.Bound(o => o.AccountManager).Title("Account

Kendo UI Server side wrappers

北战南征 提交于 2019-12-23 19:16:29
问题 Is there a nuget package for the Kendo UI server side wrappers? I know there is a nuget package that installs jquery + all the kendo js files but it doesn't include the kendo.mvc.dll which is what I care about. 回答1: Telerik is not planning to create a Nuget package for Kendo UI server side wrappers. Here is the discussion topic dated back in July 2012: http://www.kendoui.com/forums/mvc/general-discussions/nuget-install-for-kendoui-mvc.aspx 回答2: We (Telerik) may create a Nuget package for

Kendo UI Scheduler disable multiple time-span/range of a single day

一曲冷凌霜 提交于 2019-12-23 19:11:21
问题 I have a scheduler which will be used by creators and consumers. Creators will define a specific time range (create an event) in where the consumers can interact. In the other time ranges of that day, consumers can not interact and will be disabled. I did managed to create the events without any problem, but showing the available slots for interaction is causing me problems. Example: Suppose, the creator defines the allowed time slot as 4:00 pm to 8:00 pm (which I successfully can save in

server filter kendoui scheduler and refresh

给你一囗甜甜゛ 提交于 2019-12-23 19:06:27
问题 It's possible set a filter based on start date and end date on kendoui scheduler? My problem is that I have about 25000 records to extract and it's impossible send all this data in json. So I want filter my server request. and refresh data every click on change date. thanks. 回答1: I had the same problem and resolve with this example: http://www.kendoui.com/code-library/web/web/scheduler/kendoui-scheduler-server-filtering.aspx I hope this help you. 来源: https://stackoverflow.com/questions