kendo-ui

Is it possible to save the kendo chart as png format without using any 3rd party tool (linkspace)?

只谈情不闲聊 提交于 2019-12-12 01:09:11
问题 In my project have requirement to export chart into png format.Is it possible in kendo-ui with out using ink-space(3rd party tool)? 回答1: It is possible if you know how to convert SVG to PNG (the Kendo Chart doesn't provide this out of the box). Inksape is an open source tool which can convert SVG to various formats. However you must not use it for some reason you can check this .NET SVG rendering library: http://svg.codeplex.com 来源: https://stackoverflow.com/questions/15354186/is-it-possible

Highlight clicked bar series

大城市里の小女人 提交于 2019-12-12 00:33:23
问题 Is there any built in method in kendo when user clicks on the bar chart item, then it will highlight all corresponding items? For example in the following fiddle, there are five items. If I click item1 in the first bar (1970) , it should highlight item1 in second bar (1975) . series: [{ type: "column", field: "value", stack: true, name: "#= group.value #" }], 回答1: You can add the seriesClick event. Then determine which series was clicked and use the toggleHighlight() method to turn off

how to load the kendoMenu dynamically using dataSource or json

ε祈祈猫儿з 提交于 2019-12-12 00:32:24
问题 I want to use kendoMenu. I want to load the menu with parent and child fields dynamically. Can anyone tell me how to load the kendoMenu dynamically using json/datasource? 回答1: Kendo Menu doesn't currently support the hierarchical data source. You can initialize it dynamically using a JSON object, like this: http://docs.kendoui.com/getting-started/web/menu/overview#initialize-the-menu-using-json-data-object 回答2: This may be redundant to Bundyo's answer, but who doesn't like examples? :) This

Using Angular, Kendo, bootstrap 3 components

 ̄綄美尐妖づ 提交于 2019-12-12 00:28:41
问题 I'm evaluating Kendo with Angular and Bootstrap 3, fairly new in javascript land. Is there a preferred way as to use which components where? I know you can mix and match, but that seems messy. Does anyone have any basic guidelines or pointers? 回答1: There are different integration demos on the Kendo Labs site which should bring you the idea when it comes to integration with third party libraries. Here is link to the Angular demo on GitHub. 来源: https://stackoverflow.com/questions/20666148/using

Breeze compatible SPA building

江枫思渺然 提交于 2019-12-12 00:28:31
问题 I am so impressed with Breeze that I decided to start collecting JavaScript frameworks / libraries which are Breeze compatible like http://www.asp.net/single-page-application/overview/templates/breezeknockout-template for example. However, simplifying JavaScript UI using the MVVMM pattern (Knockout contribution) is not all I need, as I would really like to use KendoUI for it's UI widgets and support for ASP.NET MVC. As far as I can tell, KendoUI integration with Breeze is less than complete,

Kendo UI grid drag&drop stops working after adding new record

不问归期 提交于 2019-12-12 00:16:29
问题 I have Kendo UI grid with drag&drop functionality: var data = [ { id: 1, text: "text 1", position: 0 }, { id: 2, text: "text 2", position: 1 }, { id: 3, text: "text 3", position: 2 }, { id: 4, text: "text 4", position: 40 }, { id: 5, text: "text 5", position: 100 }, { id: 6, text: "text 6", position: 600 }, { id: 7, text: "text 7", position: 47000 }, { id: 8, text: "text 8", position: 99999 }, { id: 9, text: "text 9", position: 1000000 }]; var dataSource = new kendo.data.DataSource({ data:

Avoid right click on kendo grid

匆匆过客 提交于 2019-12-12 00:16:01
问题 This is my grid: $("#myHtmlTable1").kendoGrid({ dataSource: { pageSize: 18 }, scrollable: false, sortable: true, filterable: true, selectable: true, pageable: { input: false, numeric: false }, change: function () { // MY LOGIC }, columns: [ { field: "Col1", width: 40 }, { field: "Col2", width: 250 }, { width: 40, field: "Col3" }, { width: 150, field: "Col4" } ] }); When I clic a row I get the row text and I put it in another textbox. But I want to do this only with left button mouse so that I

Pagination does not work

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 23:50:20
问题 I've got a Kendo MVC Grid where the pagination does not work. It's loading the resultset in a single page, and clicking the page buttons does not do anything. The script files are loaded correctly and in the right order ( jquery-1.11.2.min.js , kendo.all.min.js and kendo.aspnetmvc.min.js ). I'm using Kendo UI version 2015 Q1 (2015.1.318.545). View @(Html.Kendo().Grid<MyModel>() .Name("Grid") .Columns(columns => { columns.Bound(c => c.Type); columns.Bound(c => c.Count); columns.Bound(c => c

Kendo UI Multi Select List Item Per Row

微笑、不失礼 提交于 2019-12-11 23:44:57
问题 Anyone know how to use the Kendo UI Multiselect so it displays the selected items in a list vertically instead of in-line. By default it displays it like this: | [Item 1] [Item 2] [Item 3] | But I want to display it like this: | [Item 1] | | [Item 2] | | [Item 3] | Does anyone know how I can achieve this? 回答1: all you need to do is to change the width of your multiselect .HtmlAttributes(new { @style="width: 100px;"}) 回答2: You can target the items inside the control with this style, so they

Data Event Binding on Chart

房东的猫 提交于 2019-12-11 23:21:14
问题 As a default, chart shows data for 2001-2002 ; I would like to know when user hover the mouse on the chart it will show data for 2002-2003. Once mouser is out of the chart then it should go back to default stage. //The first data comes from 2001-2002 var seriesData = [{ year: "2000", sold: 100, produced: 200 }, { year: "2001", sold: 250, produced: 280 }]; // The second dataset comes from 2002-2003 var seriesData2 = [{ year: "2002", sold: 140, produced: 240 }, { year: "2004", sold: 350,