In this demo:
http://demos.telerik.com/kendo-ui/bar-charts/column
There is a legend on the top of the chart. If you click on one of the series in the legend, that data in the chart is not visible. Is there a way to programmatically do this? I want to provide this feature via an edit popup.
Thanks,
--Ed​
Below is my coding.
Here i want to do a if condition in "Comments" column. if comments available then i need to replace it as "1". if its empty then "0".
1. Either i can introduce new column at the end and apply the above condition and hide the "Comment" column (as this value depend on child row)
2. or directly modify the comment column
<div id="grid"></div>
<button id="btnprint" type="submit" name="excel" value="valexcel">Print</button>
<script> $("#grid").kendoGrid({ columns: [{ field: "productName" }, { field: "category" }, { field: "status" }, { field: "Comments" }], dataSource: { data: [{ productName: "Tea", category: "Beverages", status: "Open", "Comments": "" }, { productName: "Coffee", category: "Beverages", status: "Open", "Comments": "comment1" }, { productName: "Ham", category: "Food", status: "Open", "Comments": "" }, { productName: "Bread", category: "Food", status: "Open", "Comments": "" }, { productName: "Hammer", category: "Hardware", status: "Closed", "Comments": "Comment test" }, { productName: "Screw", category: "Hardware", status: "Open", "Comments": "commenting testing" }], group: { field: "category" } }, detailTemplate: "<div class='Comments'>",
detailInit: function (e) { e.detailRow.find(".Comments").html("<p>" + e.data.Comments + "</p>"); }, });</script>
i have the following coding. I want to print this as it is in a button click ( with same color, styles etc..)
<div id="grid"></div>
<button id="btnprint" type="submit" name="excel" value="valexcel">Print</button>
<script> $("#grid").kendoGrid({ columns: [{ field: "productName" }, { field: "category" }, { field: "status" }, { field: "Comments" }], dataSource: { data: [{ productName: "Tea", category: "Beverages", status: "Open", "Comments": "" }, { productName: "Coffee", category: "Beverages", status: "Open", "Comments": "comment1" }, { productName: "Ham", category: "Food", status: "Open", "Comments": "" }, { productName: "Bread", category: "Food", status: "Open", "Comments": "" }, { productName: "Hammer", category: "Hardware", status: "Closed", "Comments": "Comment test" }, { productName: "Screw", category: "Hardware", status: "Open", "Comments": "commenting testing" }], group: { field: "category" } }, detailTemplate: "<div class='Comments'>",
detailInit: function (e) { e.detailRow.find(".Comments").html("<p>" + e.data.Comments + "</p>"); }, });</script>
I tried with the following link and cannot achieve this.
https://docs.telerik.com/kendo-ui/controls/data-management/grid/export/print-export
-- I can achieve this by converting this grid to pdf and print it. But i dont want to do it and want to print this directly
Expecting your help.
Hi,
I'm trying to create an Arc Gauge with a centerTemplate
that won't use "value". The centerTemplate is going to display
percentage of RAM and the actual RAM used (see attached image).
If I were to only show the percentage, it wouldn't be any problem.
Currently, my code for the Arc Gauge looks like this:
@(Html.Kendo().ArcGauge() .Name("MemoryBar") .Value(Model.CurrentMemoryPercent) .Scale(x => x.Min(0).Max(100)) .CenterTemplate(string.Format("{0}% ({1})", Model.CurrentMemoryPercent, size)))That just creates a static CenterTemplate, though, and none of the variables are updated unless I refresh the page.
I can kinda work around this by using setoptions, but that redraws the entire gauge and forces me to disable transitions, which I don't want to.
Am I missing something completely, or can't this be done properly?
Thanks for any help.
I'm using Kendo UI for jQuery.
All my grids render with 20 columns at the least, and although I have set multiple choices for pagesizes available, it's likely that for most of the time when people use my application, they'll be dealing with grid data with all of the rows rendered at the same time (>4000).
Problem is, when all the rows are rendered, the grid is slowed and lagged beyond use; hover states are not matching between fixed and column rows (which I had to write a separate script for), scrolling is lagging or at times impossible, checkboxes take good 3 seconds before it's checked, 5 seconds to uncheck it, etc. Not only does it render so slow that my entire browser freezes, after it renders it basically prevents me from doing anything else within my website.
I tried scrollable (virtual, endless), server scrolling, server paging, changing databinding & databound functions, but nothing seems to resolve the speed issue. From what I just checked it takes 4 seconds to resize itself after I changed the browser size. The essentials of my grid relies on displaying large amounts of data to be able to manipulate them, and this lagging is practically rendering my pages unusuable. I'm wondering if this issue could be fixed by Telerik. Thanks in advance.
I'm tasked with creating a modal that contains three kendo grids that are presented like a treeView. When pressing the expand button for each grid, the details will appear. For a clearer picture of what I'm trying to achieve, please refer to the image attached.
I've succeeded in creating each kendo grid individually. However, they do not collapse/expand. Each Kendo grid is usually different from the others so I don't believe I can do something like https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/detailinit. Is it possible to accomplish what's shown in the image I attached?
I have integer based data. So I set my label format to be {0:N0}.If I have a limited data set (0, 1) I would only want two lines on the chart for 0 and 1. Instead I get lines for 0.0, 0.2, 0.4, 0.6, 0.8, 1.0 etc. Due to the value rounding these all appear as 0, 0, 0, 1, 1, 1. This looks really stupid.
Here's a Dojo showing what i mean: https://dojo.telerik.com/UvePaCOj/2
When I created a timeline in horizontal mode with data=[], it throws exception.
The source code: https://dojo.telerik.com/oSiroXIv/3
The exception:
Uncaught TypeError: Cannot read property 'left' of undefined
at o (kendo.all.min.js:sourcemap:92)
at init._initHorizontal (kendo.all.min.js:sourcemap:92)
at init.refresh (kendo.all.min.js:sourcemap:92)
at init.d (jquery.min.js:2)
at init.trigger (kendo.all.min.js:sourcemap:25)
at init._process (kendo.all.min.js:sourcemap:28)
at init.success (kendo.all.min.js:sourcemap:28)
at Object.success (kendo.all.min.js:sourcemap:28)
at init.read (kendo.all.min.js:sourcemap:27)
at kendo.all.min.js:sourcemap:28