Hi folks,
i try to add a new row in my grid, but it raises an error. In my datasource i work with $expand and have something like this:
Firstname, Lastname, AttributeID, Attribute (Name,Description, Value)
In my grid the columns show Firstname, Lastname, Attribute.Name, Attribute.Description, Attribute.Value
If i try to add a new row, the error is "can't read property 'Name' of null" and that is because of the expanding items.
$kendoHtmlEncode(data.Attribute.Name==null?'':data.Attribute.Name)
Do you have an example how to work with adding new rows with expanding items? Or what am I doing wrong?
Thanks and regards,
Chris
Uncaught TypeError: Cannot read property 'Name' of null at eval (eval at compile (kendo.all.js:194), <anonymous>:3:898) at init._rowsHtml (kendo.all.js:52270) at init._renderContent (kendo.all.js:52843) at init.refresh (kendo.all.js:52706) at init.proxy (jquery-1.12.4.js:529) at init.trigger (kendo.all.js:124) at init._process (kendo.all.js:6965) at init._change (kendo.all.js:6925) at init.proxy (jquery-1.12.4.js:529) at init.trigger (kendo.all.js:124)Hello
I think there are some incorrect typescript typings for kendo.ui.window.title(). The description of the logic on the API reference implies it can either:
In the typings file it is listed as follows:
title(): kendo.ui.Window;
title(text?: string): void;
I think the correct typings should be:
title(): string;
title(text?: string): kendo.ui.Window;

Hi Team,
I need to add percentage in tooltip and series label . I am successfully able to do the same by adding directly into tooltip template and series label template.
Please find below my working code:
<div id="chart"></div>
<script>
var x= 0;
function processResponse(response) {
var length = response.length;
var item;
var i;
for (i = 0; i < length; i++) {
item = response[i];
x = x + item.ActionsCount;
}
return response;
}
var seriesData = [
{"IsMainAction":"8). Cancelled","ActionsCount":20},{"IsMainAction":"7). Completed (KPI not fully achieved)","ActionsCount":4},
{"IsMainAction":"6). Completed (KPI achieved)","ActionsCount":21},
{"IsMainAction":"5). Ongoing (delayed)","ActionsCount":1},
{"IsMainAction":"4). Ongoing (on time)","ActionsCount":12}, {"IsMainAction":"3). Not yet started (will be on time)","ActionsCount":9},
{"IsMainAction":"2). Not yet started (will be delayed)","ActionsCount":3},
{"IsMainAction":"1). Planned","ActionsCount":80}
];
function createChart() {
$("#chart").kendoChart({
legend: {
position: "center",
visible: true,
template: "#= data.name #"+ "%"
},
dataSource: {
data: seriesData,
group: {
field: "IsMainAction"
},
schema: {
parse: function(response) {
return processResponse(response);
}
}
},
seriesDefaults: {
type: "bar",
stack: true
},
seriesColors: ["#F4DC7A", "#FF2B24", "#FDC1A4", "#3CB4FF", "#D079F1", "#1AAF18", "#0DFF85", "#222222"],
series: [
{
field: "ActionsCount" ,
labels:{
visible: true,
position: "center",
rotation: -90,
//color: "#FFFFFF",
format: "{0}",
mirror: true,
background: "transparent", //padding: { left: -10 },
template:"#= value # (#=kendo.toString((value/10)*100, 'n2')#" + "%)"
}
}
],seriesColors: ["#F4DC7A", "#FF2B24", "#FDC1A4", "#3CB4FF", "#D079F1", "#1AAF18", "#0DFF85", "#888"],
tooltip: {
visible: true,mirror: true,
template:"#= value # (#= kendo.toString((value/10)*100, 'n2')#" + "%)"
}
});
}
$(document).ready(createChart);
$(document).bind("kendo:skinChange", createChart);
</script>
Please see the attachment chart1 for output
However when I am trying to add in databound only for first bar I am getting the output correctly . For all other bar only value is getting displayed. But for template it is working as expected. Please see the code below:
<div id="chart"></div>
<script>
function onDataBound(arg) {
arg.sender.options.tooltip.template = "#= value # (#= kendo.toString((value/10)*100, 'n2')#" + "%)";
arg.sender.options.series[0].labels.template = "#= value # (#= kendo.toString((value/10)*100, 'n2')#" + "%)";
arg.sender.redraw();
}
var x= 0;
function processResponse(response) {
var length = response.length;
var item;
var i;
for (i = 0; i < length; i++) {
item = response[i];
x = x + item.ActionsCount;
}
return response;
}
var seriesData = [
{"IsMainAction":"8). Cancelled","ActionsCount":20},{"IsMainAction":"7). Completed (KPI not fully achieved)","ActionsCount":4},
{"IsMainAction":"6). Completed (KPI achieved)","ActionsCount":21},
{"IsMainAction":"5). Ongoing (delayed)","ActionsCount":1},
{"IsMainAction":"4). Ongoing (on time)","ActionsCount":12}, {"IsMainAction":"3). Not yet started (will be on time)","ActionsCount":9},
{"IsMainAction":"2). Not yet started (will be delayed)","ActionsCount":3},
{"IsMainAction":"1). Planned","ActionsCount":80}
];
function createChart() {
$("#chart").kendoChart({
legend: {
position: "center",
visible: true,
template: "#= data.name #"+ "%"
},
dataSource: {
data: seriesData,
group: {
field: "IsMainAction"
},
schema: {
parse: function(response) {
return processResponse(response);
}
}
},
seriesDefaults: {
type: "bar",
stack: true
},
dataBound: onDataBound,
seriesColors: ["#F4DC7A", "#FF2B24", "#FDC1A4", "#3CB4FF", "#D079F1", "#1AAF18", "#0DFF85", "#222222"],
series: [
{
field: "ActionsCount" ,
labels:{
visible: true,
position: "center",
rotation: -90,
//color: "#FFFFFF",
format: "{0}",
mirror: true,
background: "transparent", //padding: { left: -10 },
}
}
],seriesColors: ["#F4DC7A", "#FF2B24", "#FDC1A4", "#3CB4FF", "#D079F1", "#1AAF18", "#0DFF85", "#888"],
tooltip: {
visible: true,mirror: true
}
});
}
$(document).ready(createChart);
$(document).bind("kendo:skinChange", createChart);
</script>
Please see the attachment chart 2 for this output
Kindly help me to fix this issue

Hello,
So I read some of the Kendo documentation regarding MVVM and it says that once the view model is updated the view (HTML) should update as well.
I tried that many times and when I change the viewModel from javascript I don't see the changes updated in the HTML unless I trigger the change event, as shown here:
https://jsfiddle.net/oycbw9e6/
You will notice that if you comment out this line: viewModel.trigger("change", { field: "price"}); then the changes won't be propagated to the HTML view.
Is there any way it can be done automatically without triggering the "change" event?
Thanks!

Hi,
I have attached a tooltip to a button. Next to the button is an iframe. When hovering the button, the tooltip shows. But when exiting the button area (slowly) into the iframe area, the tooltip often fails to autohide. Any ideas on why this is happening and how to fix this?
I have created a simple dojo example but since I cannot save it ("Failed to create snippet"), I have attached it in this post.
Regards,
Ron
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Untitled</title> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.common.min.css"> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.rtl.min.css"> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.default.min.css"> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.mobile.all.min.css"> <script src="http://code.jquery.com/jquery-1.12.3.min.js"></script> <script src="http://kendo.cdn.telerik.com/2017.2.621/js/angular.min.js"></script> <script src="http://kendo.cdn.telerik.com/2017.2.621/js/jszip.min.js"></script> <script src="http://kendo.cdn.telerik.com/2017.2.621/js/kendo.all.min.js"></script></head> <script> $(function () { $('#button').kendoButton().kendoTooltip({ content: 'This is the tooltip' }); }); </script><body> <div id="button">BUTTON</div><div style="vertical-align: top; display: inline-block;"><iframe style="border: 1px solid black"></iframe></div> <div>Hover the button and slowly move the mouse into the iframe area</div> </body></html>
Hi,
I am experiencing a problem with panelbar with the latest kendo ui release. When using a (local) datasource which contains items with the 'expanded' option set to true, the corresponding panelbar item doesn't work. Neither the item gets expanded by default, the item does not expand when clicking the item.
Reverting back to an older version, for instance Kendo UI R3 SP2, thing are working properly. I have tried making a dojo example but at the moment I don't seem to be able to save the example ("Failed to create snippet"). I will add the code at the end of this psot.
On a side note: when using 'contentUrl', the content doesn't get loaded when clicking the non-responsive item. This might be as a result to the item not being expanded properly.
Regards,
Ron
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Untitled</title> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.common.min.css"> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.rtl.min.css"> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.default.min.css"> <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.mobile.all.min.css"> <script src="http://code.jquery.com/jquery-1.12.3.min.js"></script> <script src="http://kendo.cdn.telerik.com/2017.2.621/js/angular.min.js"></script> <script src="http://kendo.cdn.telerik.com/2017.2.621/js/jszip.min.js"></script> <script src="http://kendo.cdn.telerik.com/2017.2.621/js/kendo.all.min.js"></script> <script>$(document).ready(function() { $("#kendoBar").kendoPanelBar({ dataSource: [{ text: 'Test expanded not present (WORKING)', expanded: false, content: "Will work because no expanded option is provided" }, { text: 'Test expanded option is present (NOT WORKING)', expanded: true, content: "Will not work with the expanded option" }] });}); </script> </head><body> <h2>Kendo PanelBar v2017.2.504 not working</h2><h3>Test kendoPanelBar: expanded: true not working</h3><div id="kendoBar"></div><p> Also: contentUrl is not loaded on load, but is loaded when clicked on the item</p></body></html>

<div id="forecast"> @(Html.Kendo().TabStrip() .Name("tabstrip") .Items(tabstrip => { tabstrip.Add().Text("Paris") .Selected(true) .Content(@<text> <div class="weather"> <h2>17<span>ºC</span></h2> <p>Rainy weather in Paris.</p> </div> <span class="rainy"> </span> </text>); tabstrip.Add().Text("New York") .Content(@<text> <div class="weather"> <h2>29<span>ºC</span></h2> <p>Sunny weather in New York.</p> </div> <span class="sunny"> </span> </text>); tabstrip.Add().Text("Moscow") .Content(@<text> <div class="weather"> <h2>16<span>ºC</span></h2> <p>Cloudy weather in Moscow.</p> </div> <span class="cloudy"> </span> </text>); tabstrip.Add().Text("Sydney") .Content(@<text> <div class="weather"> <h2>17<span>ºC</span></h2> <p>Rainy weather in Sidney.</p> </div> <span class="rainy"> </span> </text>); }) )</div><!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8" /> <title>Index - TRS Portal</title> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <meta name="viewport" content="width=device-width" /> <link href="/Content/site.css" rel="stylesheet"/> <script src="/Scripts/modernizr-2.5.3.js"></script> <link href="/Content/kendo.common.min.css" rel="stylesheet"/><link href="/Content/kendo.default.min.css" rel="stylesheet"/> <script src="/Scripts/jquery-1.7.1.js"></script> <script src="/Scripts/kendo.web.min.js"></script><script src="/Scripts/kendo.aspnetmvc.min.js"></script>Anyone knows why MM-dd-yyyy format is being parsed to retain the first 2 digits of the year instead of last 2 digits?
Parsing 06-21-2017 to a mm-dd-yy format results in 06-21-20.
Example: http://dojo.telerik.com/unOJA
Any guidance is much appreciated.
I am building a stock chart with bullet series.
Here is the jsFiddle: https://jsfiddle.net/bf6cgc12/
As you can see that in the bullet series vertical lines are displayed instead of bars.
I have spent quite a bit of time trying to figure out the issue but all in vain.
Any help will be appreciated.