kendo-ui

Javascript inside Kendo Template is giving incorrect result

…衆ロ難τιáo~ 提交于 2019-12-11 01:44:57
问题 I have a template with javascript inside it # if(IsSelected) { # <tr> <td data-bind="text: name"></td> <td data-bind="text: age"></td> </tr> # } # It is intended to show only those records for which the IsSelected value is true. Though it shows only two records – the records displayed are not correct. What is the reason for this? Fiddle: http://jsfiddle.net/Lijo/Z86dq/4/ CODE <html> <head> <title>Template Filtering</title> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

Do Kendo UI Charts support Smart Labels like Telerik UI Charts do?

落爺英雄遲暮 提交于 2019-12-11 01:38:04
问题 "Smart Labels" are labels that do not overlap each other. They are mentioned in the docs: http://docs.telerik.com/devtools/wpf/controls/radchartview/features/labels/smart-labels My question is about "Smart Labels", which is a Telerik UI feature we decided to use. I need to mirror Telerik UI Charts functionality using Kendo UI Charts and thus "Smart Labels" is a requirement. 回答1: Unfortunately, there is no such feature in Kendo UI Charts. You can find a thread relating to this in the Telerik

Selecting a row from a Kendo Grid programmatically

寵の児 提交于 2019-12-11 01:34:27
问题 I have got a grid and one of its columns is a template with a checkbox in it: .Name("grid") .Columns(columns => { columns.Bound(c => c.Id).ClientTemplate("<input type=\"checkbox\" id=\"chk_#=Id#\" class=\"gridCK\" onclick=\"zzz(this)\"/>"); When I check the checkbox, I want its row to become selected (and vice-versa). I have tried the following: function zzz(e) { var id = e.id; var grid = $("#grid").data("kendoGrid"); var data = grid.dataSource.data(); var res = $.grep(data, function (d) { if

How to access column name dynamically in Kendo Grid template

不羁岁月 提交于 2019-12-11 01:32:46
问题 I need to access the column name dynamically in Kendo Grid template. Code: $("#grid").kendoGrid({ dataSource: [ { Quantity: 2 , Amount: 650}, { Quantity: 0, Amount: 0 }, { Quantity: 1, Amount: 500 }, { Quantity: 4, Amount: 1047 } ], sortable: true, columns: [ { field: "Quantity", template: function (dataItem) { if (dataItem.Quantity == '0') { return "--"; } else { return dataItem.Quantity; } } }, { field: "Amount", template: function (dataItem) { if (dataItem.Amount == '0') { return "--"; }

Kendo Mobile - Can not refresh listview on ModalView Close

时间秒杀一切 提交于 2019-12-11 01:27:00
问题 I can not refresh the listview when a dialog which add's or deletes rows from this listview is closes. I tried several things. but the following does not work function closeModalViewRemove() { $("#modalview-app-remove").kendoMobileModalView("close"); //--- this is not working -- start --- refreshAppList(); //--- this is not working -- finish --- }; function refreshAppList() { var applist = $('#applist').data('kendoMobileListView'); applist.dataSource.read(); applist.refresh(); } what am I

Kendo: bind remote datesource to form

倾然丶 夕夏残阳落幕 提交于 2019-12-11 01:17:11
问题 I am trying to understand how I can bind data from a remote datasource to a form, similar to this question, my ajax is returning the correct data. I have tried to implement the suggested solution but it doesn't appear to work and there are no errors either. my ajax request: $.ajax({ url: "Read?messageID=" + "123456", method: "get", type: "application/json", success: function (result) { console.log(result); }, error: function (result) { console.log(result); } }) I do not know how to extract

kendoui grid in mvc3 security vulnerability, how do i get around it?

限于喜欢 提交于 2019-12-11 01:14:40
问题 The kendoUI grid uses HttpGet requests to update the data during an AJAX request. (http://www.kendoui.com/documentation/asp-net-mvc/helpers/grid/ajax-binding.aspx) The server returns a Json result, and, in order to get it to work, we need to use the following code: return Json(Result, JsonRequestBehavior.AllowGet); That does the job just fine, but it's a security vulnerability (that's why Microsoft makes us put the "AllowGet" in there). The safe way to return the Json would be in an HttpPost,

how to set kendo ui autocomplete width with css?

淺唱寂寞╮ 提交于 2019-12-11 01:14:22
问题 How can I set the width of an autocomplete using css? I know I can set it up when I set up the width when I declare it, like so. @(Html.Kendo().AutoComplete().Name("test").HtmlAttributes(new { style="width:400px"})) But I want to know how to do it in css. I tried the following and it didn't work .k-autocomplete .k-header { width: 300px; } 回答1: Simply do this: .k-autocomplete.k-header { width: 300px; } Remove the space between CSS class selectors. 回答2: Taken from their documentation var

checkbox event is not firing with jquery

不羁岁月 提交于 2019-12-11 01:08:41
问题 I have got checkbox row in parent grid and checkbox row in child grid as well in Hierarchy grid mode using kendo UI. the architecture is like this... I have got four rows in parent grid,in that one column is checkbox and for every parent row i have got one child grid with 4 rows in it and one checkbox column as well... If i click the checkbox in parent grid row i need to access the checkboxes in child grid column related to this row only and need to set the checked attribute as true for that

How to filter whole datasource on a kendo grid with virtualized remote data

会有一股神秘感。 提交于 2019-12-11 00:59:09
问题 At work, we are having performances issues with a kendo grid that has a lot of row. We are thinking about using virtualization of remote data as a solution like you can see on the link below. https://demos.telerik.com/kendo-ui/grid/virtualization-remote-data The problem we have with that solution is that we allow filters on a lots of our columns and only the rows that are defined in the pagesize of the grid are displayed. In the link below, you can easily see what I mean by that. I added the