kendo-ui

How to update multiple rows on kendo grid with outside button

守給你的承諾、 提交于 2019-12-11 06:36:46
问题 I have a kendo grid with columns as: i write a function for Close button, when user select rows by check and click Close button, this will auto update IsClosed Column to "True" and this is my code: $(function () { $('#btnClose').click(function () { var grid = $('#grOrders').data("kendoGrid"); $.each($('#grOrders :checkbox:checked').closest('tr'), function () { var data = grid.dataItem($(this)); data.set("IsClosed", true); }); }); }); when i test, it only update a first row checked, don't know

Kendo update scheduler options dynamically

寵の児 提交于 2019-12-11 06:29:13
问题 I am using KendoUI scheduler with AngularJS. I am declaring the scheduler options in accordance with the documentation, pretty standard stuff. See below: What I would like to do is be able to update $scope.schedulerOptions and have those changes reflected in the UI. When I make changes to $scope.schedulerOptions nothing changes in the UI. Any ideas on how to do this? $scope.schedulerOptions = { date: new Date("2013/6/13"), startTime: new Date("2013/6/13 07:00 AM"), height: 600, views: [ "day"

Kendo UI Chart won't update using Angular

天涯浪子 提交于 2019-12-11 06:26:05
问题 I am using k-data-source on a pie chart using Kendo DataViz and the Angular directives. When I change the datasource object on the $scope, it doesn't update and throws errors. Were the angular directives intended to be used this way? Here's a JSBin showing the problem: http://jsbin.com/OSudIzEH/9/edit Angular Code var app = angular.module('chart-example', ['kendo.directives']); function ChartController($scope) { $scope.pie = { title: { position: "bottom", text: "Share of Internet Population

Kendo UI Highlight Text in Grid

﹥>﹥吖頭↗ 提交于 2019-12-11 06:19:45
问题 I am trying to highlight text within a Kendo grid. I am using jQuery Highlight Plugin! to highlight the text. I am able to use the highlight plugin against plain old html grids. However, when I try to reference a grid generated by Kendo, I cannot get the highlight to work. Here is a snippet of the code from my MVC page. <div id="grid"> @(Html.Kendo().Grid<MyModel>()... </div> I looked at the rendered code with my browser (IE, Chrome), and noticed there was a <script> tag associated with the

how can i make my kendo dropdown list live ? ?_?

别说谁变了你拦得住时间么 提交于 2019-12-11 06:01:29
问题 i have a kendo Dropdown list its working but i need to make it a live one without the button... whenever i pick one item inside the dropdown it automatically update whats inside my grid or the query on my grid base on the selected on the dropdown list. here's my code: @using (Html.BeginForm()) { <input type="hidden" id="hiddenUser" name="hiddenUser" value="@userId" /> <p> <input id="ddlWorker" name="ddlWorker" style="width: 250px;" value="@ddlWorker" />   <input type="submit" value="Filter

Using a Modal Window with KendoUI inside of AngularJS

主宰稳场 提交于 2019-12-11 05:29:40
问题 Does anyone have any experience using KendoUI's window with AngularJS? I'm currently using Angular-Kendo but I'm not entirely sure hot to cleanly use the window. Or if there is any other solutions for presenting a modal dialog and filling it with a form loaded via a partial I'm open to that as well. My current code looks something like this: HTML: <div kendo-window id="addWindow" ng-hidden></div> JS: $scope.addSection = function() { $("#addWindow").data("kendoWindow").open(); return false; };

Set KendoDatepicker min date in open event

≯℡__Kan透↙ 提交于 2019-12-11 05:29:39
问题 I want to display past date in kendo datepicker input ,but want disable the past dates in the calender. For example , I am getting date value as 1st Oct from DB. SO I want to display the same in the date input but when user opens the kendo datepicker , i want to disable the past dates as part of validation. I tried with min: new Date() of kendo datepicker but in this case i am not able to display my data from DB Can anyone help me on this. 回答1: Try below solution. http://jsfiddle.net/vojtiik

Manually parse json data according to kendo model

时光怂恿深爱的人放手 提交于 2019-12-11 05:28:39
问题 Any built-in ready-to-use solution in Kendo UI to parse JSON data according to schema.model ? Maybe something like kendo.parseData(json, model) , which will return array of objects? 回答1: I was searching for something like that and couldn't find anything built-in. However, using Model.set apparently uses each field's parse logic, so I ended up writing this function which works pretty good: function parse(model, json) { // I initialize the model with the json data as a quick fix since //

How to make my kendo dropdown list readonly?

妖精的绣舞 提交于 2019-12-11 05:19:58
问题 I have a dropdownlist and i need to make it read only when user opens the page.But it needs to be enabled after click on edit icon. 回答1: You can do the following: var dataSource = $("#dropdownElement").data("kendoDropDownList"); To make kendo dropdown read only: dataSource.readonly(); To remove read only to kendo dropdown: dataSource.enable(true); 来源: https://stackoverflow.com/questions/40521663/how-to-make-my-kendo-dropdown-list-readonly

Set/Modify Title in kendo mvc grid?

一曲冷凌霜 提交于 2019-12-11 05:15:46
问题 I'm trying to get hold of column bound info . so that i can add few settings(Width,Title etc) to Kendo grid where columns are created on fly . Code: @(Html.Kendo().Grid<dynamic>().Name("Grid").AutoBind(false) //model is dynamic .Columns(columns => { for (int index = 0; index < Model.mycolumns.Count; index++) { var item = Model.mycolumns.ElementAt(index); columns.Bound(item.Value, item.Key).Title("Test").Filterable(false); // Title setting ignored } }); when i set filterable false or Title to