kendo-ui

Kendo combobox.value(x) not working correctly

不羁的心 提交于 2020-01-06 04:00:10
问题 I'm trying to set value of kendo combobox dynamically, but when trying like: var lvl1 = $("#level1Id").data("kendoComboBox"); var lvl2 = $("#level2Id").data("kendoComboBox"); var l2value = lvl2.value(); // save value for later use ... // do something that includes changing lvl2.value lvl2.value(l2value.toString()); // set lvl2.value back to previous the combobox value sets to "Code" field - for example - 2, instead of "Value/Text" field - "corresponding value of l2value code". I understand,

KendoUI Angular Grid external command

瘦欲@ 提交于 2020-01-06 03:45:07
问题 i'm using KendoUI-Grid in an Angular (5) app. html: <kendo-grid [data]="GRIDData" (add)="addHandler($event)"> <ng-template kendoGridToolbarTemplate> <button kendoGridAddCommand type="button">Add new</button> </ng-template> component: public addHandler({sender}) { this.formGroup = createFormGroup({ 'Id': 'NEW', 'Name': 'New entry' }); sender.addRow(this.formGroup); } Is it possible to trigger the addCommand (or any other) from outside the grid? Perhaps something like: html: <button (click)=

How to valid date format dd.MM.yyyy KENDO MVC

本秂侑毒 提交于 2020-01-06 02:43:10
问题 I have problem with validation this date format in kedno UI: dd.MM.yyyy For my culture (CS-CZ) kendo use this pattern: d. M. yyyy , but mostly used is format dd.MM.yyyy . I tried everything but no success yet :/ My model: public DateTime? ExpirationDate { get; set; } My kendo form: <div class="form-group"> @Html.LabelFor(model => model.ExpirationDate, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> <div class="checkbox"> @(Html.Kendo().DatePickerFor(model =>

Series Hover to Highlight Border Color

瘦欲@ 提交于 2020-01-05 15:24:31
问题 I have the following implementation which actually highlight paired objects on the stacked bar chart. However, I would like to know whether or not there is a way to implement more pronounced highlight effect. For example make bar paired bar stacks border black when hover the mouse. seriesHover: function (e) { var clickedSeries = e.series.name; var chart = $("#chart").data("kendoChart"); for (var i = 0; i < chart.options.series.length; i++) { chart.toggleHighlight(false, chart.options.series[i

Kendo Date Picker Max Date

我怕爱的太早我们不能终老 提交于 2020-01-05 15:11:39
问题 I have a problem, I want my kendo Datepicker's max to be plus 3 days from the selected start date. I seem to be stuck. Here is my code $(document).ready(function(){ $("#txtFromDate").datepicker({ minDate: "D", numberOfMonths: 1, onSelect: function(selected) { $("#txtToDate").datepicker("option","minDate", selected) $(".selector").datepicker("option", "dateFormat", "yy-mm-dd") } }); $("#txtToDate").datepicker({ maxDate:"+3#txtFromDate", numberOfMonths: 1, onSelect: function(selected) { $("

Kendo UI filter on boolean

社会主义新天地 提交于 2020-01-05 10:38:12
问题 Is it possible to have a filter menu with options such as Yes, No, Other I have a grid with a column which could have only 3 values Yes, No or Other. The filter should show radio buttons with these values and two button Filter and Clear. Is this possible? When I try with field type:"boolean", I get 'Yes' and 'No but how do I add the third radio button 'Other'. Any help would be appreciated. Thanks 回答1: Kendo has an example of how to do just that here: http://demos.telerik.com/kendo-ui/grid

How to merge cells in Kendo UI Grid

你。 提交于 2020-01-05 08:54:07
问题 I don't see anything in the official documentation of Kendo UI. Just checking if somebody has done customization to merge the cells in Kendo UI Grid. I have content like this: Technology Core Language & Communication 15 ---------------------------------------------------------------------------------- Technology Mathematics & Application 20 ---------------------------------------------------------------------------------- Technology Science Application & Understanding 30 ---------------------

Javascript - How to escape double and single quotes on Kendo template

血红的双手。 提交于 2020-01-05 08:21:55
问题 I'm using kendolistview on my view page(razor). Inside of the kendo template I have this code. It just opens the bootstrap pop-up with. Problem is the "content" data has some " and ' values. So the link cannot be referred to the js function and the pop-up doesn't open. I tried replacing the quotes in the data layer: Content = rss.CONTENT.Replace(@"\""", "\"").Replace("'", @"\'") Summary = rss.SUMMARY.Replace(@"\""", "\"").Replace("'", @"\'") View @model AIS.UI.WebService.Proxy.DSrvAllService

kendo treeview checkbox - parent node check - change event on every checkbox

北慕城南 提交于 2020-01-05 08:02:33
问题 I have a 2-level Kendo UI Treeview with parent and children nodes. When I check a parent node, all children nodes (including parent) are automatically checked. Now I want to send an event with current tree selection state. The problem is when I try to do it in dataSource.change method because it fires on every checkbox selection separately (1 parent node + 3 children nodes = 4 change events). This is what the code looks like: treeView.data("kendoTreeView").dataSource.bind("change", function()

How I can rowspan kendo grid ui

≡放荡痞女 提交于 2020-01-05 07:55:09
问题 I want rowspan in gird kendo ui like this picture ? Images example Thanks so much! 回答1: Row spanning implies one of the following: that you will have access to at least two data items for a single table row element in a column or a row template, during rendering. This, unfortunately, is not possible with the Kendo UI Grid. even if you manipulate the table structure in the Grid's dataBound event, the Grid will not be aware of this and some operations will not work correctly (e.g. editing,