kendo-ui

Kendo UI Delete a node attribute in Treeview

自闭症网瘾萝莉.ら 提交于 2019-12-13 05:39:24
问题 I have some nodes who contain the items value which seems to be initialized by default from Kendo with the value "[]" everytime! I want to completely delete the "items" field from the node but I can't seem to find any method for attribute deleting. I try to access the nodes through dataItem and I tried dataItem.set("items",undefined) but still I don't think it helped.I'm trying to delete the items field because there seems to be a problem with that initialization done by kendo and I can't

Format Kendo grid column filter for percentages

浪子不回头ぞ 提交于 2019-12-13 04:59:42
问题 I have a kendo grid and my datasource data returns number with unknown decimal places. So I'm using a parse function on the datasource to compensate for that. DefaultMonoCPP: { editable: false, type: "number", parse: function(e) { return kendo.parseFloat(kendo.toString(e,"p4")); } } Now when I filter, I don't want it to automatically multiply the percentage by 100. So I have filterable set on the columns. { field: "DefaultMonoCPP", title: "Mono Cost", format: '{0:p4}', filterable: { ui:

Not able to display the child grid when we click on the parent grid

怎甘沉沦 提交于 2019-12-13 04:52:17
问题 Hi I am using Kendo UI grid for showing the information on hierarchy model (parent child grid model) using mvc 4 . but I am not able to show the child grid when we click on the arrow mark in parent grid ... by uisng this reference hierarchy Grid Model and this is my view for the kendo UI grid ... @Scripts.Render("~/bundles/jquery") <script type="text/javascript"> </script> @model IEnumerable<Topco.TopMapp.MVC.Models.CostPageSearch> @{ ViewBag.Title = "Index"; } <h2>Index</h2> @using (Html

Expand/Collapse all the gof kendoTreeList

天涯浪子 提交于 2019-12-13 04:50:51
问题 I am using kendoTreeList and I am trying to expand all the groups. Here is my code sample But it seems like the kendoTreeList support only expanding the first group. I tried the following selector in the expand method as well. treeList.expand($(".k-treelist-group")); to expand all the groups. Even though the selector $(".k-treelist-group").length is 3 (total number of groups) but the treelist only expand the first group. Any suggestion please let me know. 回答1: You are right, according with

Uncaught object error Kendo grid read issue

谁都会走 提交于 2019-12-13 04:43:34
问题 I'm new with Kendo. I was trying to create a Kendo grid with data from a remote link My Code: var dataSource = new kendo.data.DataSource({ transport: { read: { url: "http://www.mocky.io/v2/53e1cd17aaabaeaa0bc9a8f9", dataType: "jsonp", //contentType: "application/json; charset=utf-8", } } }); $("#grid").kendoGrid({ dataSource: dataSource, pageable: true, height: 550, editable: "inline" }); Where the remote link return [{"metaId":1,"7":"A","3":"B","10":"C","18":"D","9":"E","5":"F","2":"G","27":

Kendo UI and knockout.js rowTemplate sorting

烂漫一生 提交于 2019-12-13 04:38:44
问题 I have a MVC site where I use Kendo UI and knockout.js to display the pages. One scenario is to get the database information from server through $.getJSON and then display this information on a KendoUI grid. <div data-bind="kendoGrid:{sortable:true, data:users, rowTemplate:'userRowTemplate'}> <table> <thead> <tr> <th>Username</th> <th>First Name</th> <th>Last Name</th> </tr> </thead> </table> </div> <script type="text/html"> <tr> <td data-bind="text: Username"></td> <td data-bind="text:

How to refresh Kendo Grid on delete and add row action?

半腔热情 提交于 2019-12-13 04:34:57
问题 I have data in the grid but after certain actions like (delete or add) i want to refresh grid , below i have method for delete that is deleting the row in Kendo grid. So i want to refresh grid once delete action is completed. How to achieve that task with below implementation... So far tried code.... main.html <div kendo-grid="topRiskGrid" options="topRisksOptions" ></div> main.ctrl $scope.topRisksOptions = topRiskGridConfig.getTopRisksGrid(); $scope.topRisksOptions.dataSource =

Simple Json connection not working

安稳与你 提交于 2019-12-13 04:33:22
问题 I am trying to familiarise myself with the kendo ui dataSource, I have never before used JSON and have constructed the following using your documentation: Html: <!doctype html> <html> <head> <title>Kendo UI Web</title> <link href="styles/kendo.common.min.css" rel="stylesheet" /> <link href="styles/kendo.default.min.css" rel="stylesheet" /> <script src="js/jquery.min.js"></script> <script src="js/kendo.web.min.js"></script> </head> <body> <div id="grid"></div> <script> $(document).ready

Angular ng-click does not work in Kendo UI template

烂漫一生 提交于 2019-12-13 04:23:36
问题 I'm trying to add ng-click into Kedo UI template, but function saveCustomView on theUser controller still cannot be fired. But outside of the tag is ng-click working correctly. <div id="grid" data-ng-controller="UsersCtrl" data-ng-init="initGrid()" > <script type="text/x-kendo-template" id="testBtn" > <div class="toolbar"> <a data-ng-controller="UsersCtrl" ng-click="saveCustomView()"> Add actual selection to custom views </a> </div> </script> Could somebody tell me how can I solve it? Thanks

How to make the Kendo chart on mobile responsive?

▼魔方 西西 提交于 2019-12-13 03:39:38
问题 I have created some charts in Kendo, Link Here My problem is that I cant pinch and zoom the charts and also, if I change the orientation, the charts are not scaling to the available width. Is there a solution for this? <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div data-role="page" id="page11" data-theme='b'> <div data-role="view"> <div data-role="header" data-position="fixed" data-tap-toggle="false" data-theme='b'> <a href="index.html" data-ajax=