kendo-ui

Could not load file or assembly 'WebGrease' or one of its dependencies

落爺英雄遲暮 提交于 2019-11-27 11:56:52
问题 When I run my MVC4 Web application it gives the following error: Could not load file or assembly 'WebGrease' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO

Kendo chart rendering very slow

↘锁芯ラ 提交于 2019-11-27 08:43:33
问题 I have kendo chart as below. I have to plot the graph which has more than 20k points. The problem i am facing here is the chart is rendering very slow. How to improve the peformance of this. Any help on this is highly appreciated? @(Html.Kendo().PanelBar() .Name("linePanelBar") //.ExpandMode(PanelBarExpandMode.Multiple) .HtmlAttributes(new { style = "width:100%;height:300px;background-color:transparent;" }) .Items(panelbar => { panelbar.Add().Text("Correlation") .Expanded(true) .Content(@<div

Legend and Bar Chart Colors do not match

五迷三道 提交于 2019-11-27 08:25:00
问题 I have the following implementation and I used colorField to assign colors. However, even though I color the bar stack objects properly, but this color does not match with legend color. I thought it should be bound somehow, how should I fix it? I have used colorField because I want to assign the same color for paired objects in the bar stack column. dataSample: data[0] = { "value": 29, "series": 1, "category": "Men", "fname": "NY", "valueColor": "black" }, http://jsfiddle.net/fm79hsms/13/ 回答1

Kendo UI Dynamically Change Datasource String (XML)

雨燕双飞 提交于 2019-11-27 07:01:45
问题 I have a Kendo Grid that binds to an XML DataSource. How can I have the DataSource change, based off the selection of a drop down list. Example: //Create DataSource var gridDataSource = new kendo.data.DataSource({ transport: { read: [DropDownListValue] + ".xml", dataType: "xml" } }); gridDataSource.read(); function createGrid(){ var grid = $("#grid").kendoGrid({ dataSource: gridDataSource }... }; Where [DropDownListValue] is a drop down list on my form. In this example if [DropDownListValue]

How to change the name of file while exporting data to Excel?

让人想犯罪 __ 提交于 2019-11-27 06:51:49
问题 How do I change the name of file while exporting data to Excel? <div id="example" class="k-content"> <button type="button"id="btnExport">Export to csv!</button> <div id="grid"></div> </div> <script> $("#btnExport").click(function (e) { var result = "data:application/vnd.ms-excel,"; window.open(result); e.preventDefault(); }); </script> When I click the export button I am getting as download.xls. Is it possible to set the file name as data.xls? Can any one explain me where I need to configure

How to implement Server side paging in Client side Kendo UI grid in asp.net mvc

混江龙づ霸主 提交于 2019-11-27 06:49:25
Can anyone tell me how can I implement server-side paging with client-side Kendo UI Grid? Atanas Korchev UPDATE: We have released an open source .NET library which makes paging, sorting an filtering a lot easier. The grid will send the current pageSize and skip once you set serverPaging to true . On the server side you should page your data using the provided info and return it together with the total number of items. Here is a code snippet: Action public ActionResult Products(int pageSize, int skip) { using (var northwind = new NorthwindDataContext()) { var products = northwind.Products; //

Kendo grid date column not formatting

只谈情不闲聊 提交于 2019-11-27 05:15:59
问题 I have a KendoGrid like below and when I run the application, I'm not getting the expected format for date column. $("#empGrid").kendoGrid({ dataSource: { data: empModel.Value, pageSize: 10 }, columns: [ { field: "Name", width: 90, title: "Name" }, { field: "DOJ", width: 90, title: "DOJ", type: "date", format:"{0:MM-dd-yyyy}" } ] }); When I run this, I'm getting " 2013-07-02T00:00:00Z " in DOJ column. Why it is not formatting? Any idea? 回答1: I found this piece of information and got it to

Uncaught TypeError : cannot read property 'replace' of undefined In Grid

末鹿安然 提交于 2019-11-27 03:51:40
问题 I'm new in using Kendo Grid and Kendo UI . My question is how can i resolve this Error Uncaught TypeError: Cannot read property 'replace' of undefined This is my Code on my KendoGrid $("#Grid").kendoGrid({ scrollable: false, sortable: true, pageable: { refresh: true, pageSizes: true }, dataSource: { transport: { read: { url: '/Info/InfoList?search=' + search, dataType: "json", type: "POST" } }, pageSize: 10 }, rowTemplate: kendo.template($("#rowTemplate").html().replace('k-alt', '')),

Kendo UI Grid multi level hierarchy (n-levels of hierarchy)

大憨熊 提交于 2019-11-27 02:11:48
I am using the Kendo UI Grid and currently display parent child records appropriately. However, it turns out that i will actually need to display n-levels vs. strictly parent-child. Not every record will have children, but some will have multiple levels. Current grid code: var jgrid = $("#boxesgrid").kendoGrid({ columns: [ { field: "JobId", hidden: true }, { field: "PercentComplete", hidden: true }, { field: "JobStatusId", hidden: true }, { field: "AppName", title: "App", template: "<span>${AppName}</span><img class='health-img-r' id=app-${JobId} title='health' src='' alt='health_png' />",

Bootstrap 3 grid system does not work correctly within a 3rd party styled div (Kendo)

早过忘川 提交于 2019-11-26 22:12:46
问题 See issue demonstration: full issue demonstration and sandbox I would like to use Bootstrap 3 grid system within a <div> element. This <div> element is a Kendo datagrid toolbar which is a full page width <div> element. I do not think the solution is Kendo specific or requires Kendo skills, so please keep reading. Unfortunately the Kendo CSS applies some style on this <div> element which somehow fools bootstrap 3 grid system width calculation. As a result if I try to use col 12 units within