kendo-ui

Cell click event only happens once in kendo ui grid

青春壹個敷衍的年華 提交于 2019-12-11 16:56:24
问题 I have a click event being bound to a cell, but the click event only fires once from the very first row, when I step through the dataBound event it attaches itself, but only fires the one time <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.3.1023/styles/kendo.default-v2.min.css" /> <script src="https://kendo.cdn.telerik.com/2019.3.1023/js/kendo.all.min.js"></script> <body> <div id=

How to use a kendo observable property in multiple viewModels

北城以北 提交于 2019-12-11 16:28:27
问题 In a Kendo app using the Kendo MVVM framework: I have a "global" viewModel which is information that is common to all parts of the app - e.g. the UserState, which has a property isLoggedIn. Many different Views and ViewModels access the userState object (from what I can see, 1 View is bound to 1 ViewModel in Kendo). For example, my home page might show the Login button if they are not authenticated. Then all the other screens behave differently once you are logged in, so each ViewModel needs

How to retrieve additional data for grid row to edit only if user want to edit certain row?

左心房为你撑大大i 提交于 2019-12-11 16:19:21
问题 How to retrieve additional data for grid row to edit only if user want to edit certain row? In other words: grid is defined with datasource with f.e. 4 fields, but with pressing edit row I want popup to retrieve 50 more fields for this row, BUT after pressing update I want grid to show updated data (with this 4 fields) In other words: basic data for datasource for grid contain 4 fields/colums after clicking edit for row this datasource adds more fields to datasource for edit row. I know I can

How do I make a Kendo Menu open on hover, not on click?

泪湿孤枕 提交于 2019-12-11 15:59:26
问题 I have a Kendo menu as my main menu, with config starting like @using Kendo.Mvc.UI @(Html.Kendo().Menu() .Name("main-menu") .OpenOnClick(false) .Items(items1 => Finding no other config option, I thought making OpenOnClick false would make some magical OpenonHover true. I want menu items with children to open on hover so that I can get rid of the arrow to the right of the parent menu item text, as there is absolutely no spacing between the arrow and the tick. I have unsuccessfully tried the

Kendo UI creates a double input when added to Angular 4 app

霸气de小男生 提交于 2019-12-11 15:41:19
问题 I'm working on ASP.NET MVC app. I have recently added Angular 4 to it and now I'm trying to use some Kendo UI controls. I've added it in the same way as suggested at https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/ However instead of having a single input field like here, I'm getting a double input. I've checked the source code and it generated the following html. Any idea why it doesn't work as supposed to? In my html I put just that: <kendo-numerictextbox> [value]=

kendo switch button in asp.net mvc

百般思念 提交于 2019-12-11 15:25:37
问题 I have a kendo switch button, like this: <div class="col-md-2 form-group"> <input id="euro-switch" aria-label="euro Switch" /> </div> and this is the jquery: $("#euro-switch").kendoMobileSwitch({ onLabel: "€", offLabel: "%", change: function (e) { $('kendoNumericTextBox').value } }); and I have a numerictextbox: <div class="col-md-2 form-group"> @(Html.Kendo().NumericTextBox() .Name("SignalThreshold") .Value(0) .Step(10) .Min(0) .Events(e => e.Change("FilterThresholdChange")) .Format("'€' ##

Kendo ui grid filed with editor, pop up won´t close

最后都变了- 提交于 2019-12-11 15:04:46
问题 I have a field on my kendo ui grid which uses an editor: columns:[{ field:"Nome", title: "Nome" },{ field: "idTipoQuarto", title:"Tipo de Quarto", editor: tipoQuartoEditor}, In my model i have: schema: { data: "data", total: function(response) { return $(response.data).length; }, model: { id: "idQuarto", fields: { idQuarto: { editable: false, nullable: true }, Nome: { validation: { required: true } }, idTipoQuarto: { validation: { required: true }} } } } And my editor function is: function

Kendo UI Grid - Excel Export with hidden columns and custom formatting

一笑奈何 提交于 2019-12-11 14:41:15
问题 I'm attempting to use the Grid component's built-in support for exporting to excel, applying custom cell formatting as shown in these Telerik docs: http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/excel/cell-format The approach using hard-coded row / cell indexes in the export comes with a rather obvious issue when exporting a grid with a prior hidden column displayed - best way to reproduce is to refer to this jsfiddle: https://jsfiddle.net/3anqpnqt/1/ Run fiddle Click

kendoui grid custom group header with columns

时光总嘲笑我的痴心妄想 提交于 2019-12-11 14:39:32
问题 Does anyone know if there is a way to create a custom group header template that will allow columns to be shown with aggregate data by column in that group? The grid component uses colspan and I want to control the entire rending of the group header template. Example of modified HTML showing desired UI 回答1: With the current implementation of Kendo UI Grid only the aggregates from the grouped column can be displayed in the groupHeaderTemplate. You can also check this post: http://www.telerik

How to solve incorrect grouped bar chart in Chrome?

我的未来我决定 提交于 2019-12-11 14:36:22
问题 I'm creating a grouped bar chart like this: $("#chart").kendoChart({ dataSource: { data: rawdata, group: { field: "Serie" }, }, legend: { position: "top" }, plotArea: { background: "white", }, seriesDefaults: { type: "column", style: "smooth", stack: true }, series: [ { field: 'Valor1', labels: { visible: true, background: '', format: 'p1', color: 'white', position: 'center' }, } ], valueAxis: { max: 1, labels: { format: "p2" }, line: { visible: false }, axisCrossingValue: -10, },