Hi,
I want to set the start time and end time with remote data in Gantt CustomView,
so i call ajax then put them into "range" function, But the result show out "undefined",
my code bellow:
kendo.ui.GanttCustomView = kendo.ui.GanttView.extend({
name: "custom",
options: {
yearHeaderTemplate: kendo.template("#=kendo.toString(start, 'yyyy')#"),
quarterHeaderTemplate: kendo.template("# return ['Q1', 'Q2', 'Q3', 'Q4'][start.getMonth() / 3] #")
},
range: function(range) {
var startD = '';
var endD = '';
$.ajax({
type: "post",
url: "@Href("~/Home/GetMinAndMaxDate/")",
data: { 'EmpNo': @Model.EmpNo },
async: false,
success: function (data) {
startD = data.split(";")[0];
endD = data.split(";")[1];
},
error: function () { alert("edit Error") }
});
this.start = new Date(startD);
this.end = new Date(endD);
},
Shouldn't I do this? And how to set the date in remote way?
Thanks,
Liu
Hi Guys,
Just want to tell you about a problem I've found in case it affects anybody else.
After upgrading from Angular 7 to Angular 8 we kept getting the error Cannot read property 'data' of undefined for any kendo grids using a transport object.
The error was in kendo.data.js, what was happening was the kendo code is using $.extends to clone the transport object but only the properties were being cloned, so when kendo tries to execute the read function, it does not exist on the cloned transport object.
It turns out that as part of the Angular upgrade, typescript is updated to 3.5.3 and the CLI has been changed to build using ES2015 rather than es5. ES2015 uses native javascript classes and the version of jquery we are using (1,11,1) doesn't include the functions when extending those classes.
As a work around, we have changed the target back to es5 in the tsconfig.json.
Hopefully Kendo will switch to Object.assign instead of $.extends to clone their object as this plays nice with ES2015 / ES6
Remove kendo multiselect for kendo.all.min js file and create a custom kendo.multiselect.min.js
In my project i am using v2017 of kendo.all.min.js. but in case of kendo multiselect with server filttering , i am facing a issues while a adding custom data into the datasource. if i change a the version 2015 the multiselect are working bu other things are not working. so i want to remove mutiselect from kendo.all.min.js (v2017) and create a separate kendo.multiselect.min.js file with v2015
Hi Team,
I've been messing around with this MultiSelect widget. It has been a little buggy after the Q3 2015 release. I'm saying so because this is not the first time I'm seeing and reporting a problem with this widget.
So, If you please go to this link - http://dojo.telerik.com/OSoTU/4
It does not add it for the first time, but you can see the textbox has updated values. Now, if you hit the button again, it will show you the right items in the widget.
And this behavior can only been seen If serverFiltering is active.
Any suggestions?
Thanks,
George
Hello,
In batch editing with locked column no focus on first cell.
In batch editing when i am add row, first cell get focus. If add first locked column. first cell didn't get focus.
Exemple: https://dojo.telerik.com/ucEraQOW
Hello,
I have the requirement to move the sort icon (arrow) to the left before the column heading. The reason is because if the column size is to small, the arrow is not visible for the user. We are not able - and willing - to hard code all table widths so the only solution is to change the display of the filter. Is there a way of moving the icon to the left, before the text, so that it is visible even if the column size is smaller than the column heading?
Regards
Sebastian
Hi,
I'm wondering if there is a way to expand sub-menu items between the root items when the menu has a vertical orientation
For example for the menu below the space between products and blog would expand to accommodate the sub-menu. Would another control be better for this?
<!DOCTYPE html>
<
html
>
<
head
>
<
base
href
=
"https://demos.telerik.com/kendo-ui/menu/index"
>
<
style
>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</
style
>
<
title
></
title
>
<
link
rel
=
"stylesheet"
href
=
"https://kendo.cdn.telerik.com/2019.2.619/styles/kendo.common-material.min.css"
/>
<
link
rel
=
"stylesheet"
href
=
"https://kendo.cdn.telerik.com/2019.2.619/styles/kendo.material.min.css"
/>
<
link
rel
=
"stylesheet"
href
=
"https://kendo.cdn.telerik.com/2019.2.619/styles/kendo.material.mobile.min.css"
/>
<
script
src
=
"https://kendo.cdn.telerik.com/2019.2.619/js/jquery.min.js"
></
script
>
<
script
src
=
"https://kendo.cdn.telerik.com/2019.2.619/js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
ul
id
=
"menu"
>
<
li
>
Products
<
ul
>
<
li
>
Furniture
<
ul
>
<
li
>Tables & Chairs</
li
>
<
li
>Sofas</
li
>
<
li
>Occasional Furniture</
li
>
<
li
>Children's Furniture</
li
>
<
li
>Beds</
li
>
</
ul
>
</
li
>
<
li
>
Decor
<
ul
>
<
li
>Bed Linen</
li
>
<
li
>Throws</
li
>
<
li
>Curtains & Blinds</
li
>
<
li
>Rugs</
li
>
<
li
>Carpets</
li
>
</
ul
>
</
li
>
<
li
>
Storage
<
ul
>
<
li
>Wall Shelving</
li
>
<
li
>Kids Storage</
li
>
<
li
>Baskets</
li
>
<
li
>Multimedia Storage</
li
>
<
li
>Floor Shelving</
li
>
<
li
>Toilet Roll Holders</
li
>
<
li
>Storage Jars</
li
>
<
li
>Drawers</
li
>
<
li
>Boxes</
li
>
</
ul
>
</
li
>
<
li
>
Lights
<
ul
>
<
li
>Ceiling</
li
>
<
li
>Table</
li
>
<
li
>Floor</
li
>
<
li
>Shades</
li
>
<
li
>Wall Lights</
li
>
<
li
>Spotlights</
li
>
<
li
>Push Light</
li
>
<
li
>String Lights</
li
>
</
ul
>
</
li
>
</
ul
>
</
li
>
<
li
>
Blog
</
li
>
<
li
>
Company
</
li
>
<
li
>
Events
</
li
>
<
li
disabled
=
"disabled"
>
News
</
li
>
</
ul
>
<
style
>
</
style
>
<
script
>
$(document).ready(function() {
$("#menu").kendoMenu({
orientation: "vertical"
});
});
</
script
>
<
style
>
.k-menu-vertical /* for all horizontal menus */
{
display: inline-block;
}
.k-menu .k-i-arrow-60-right {
display: none;
}
</
style
>
</
body
>
</
html
>
Hi,
I managed to combine something and have chart bound to same websocket ds as grid in your demo.
Read method gets data and draws pie chart, but when I update data via grid, nothing happens.
After some investigation it seems, pushUpdate in transport causes error causing chart not to update.
on this part:
//Check what the push type is and invoke the corresponding callback.
if (result.type == "push-update") {
options.pushUpdate(result);
}
This is error I get in demo:
kendo.all.js:7092 Uncaught TypeError: Cannot read property 'call' of undefined
at Object.<anonymous> (VM30647 kendo.all.min.js:28)
at Function.Deferred (VM30646 jquery.min.js:2)
at init._promise (VM30647 kendo.all.min.js:28)
at init._send (VM30647 kendo.all.min.js:28)
at init.sync (VM30647 kendo.all.min.js:28)
at init._change (VM30647 kendo.all.min.js:28)
at init.d (VM30646 jquery.min.js:2)
at init.trigger (VM30647 kendo.all.min.js:25)
at o.<anonymous> (VM30647 kendo.all.min.js:27)
at o.trigger (VM30647 kendo.all.min.js:25)
Is there any different approach I can/should take so I can have real time updates on the chart?
Thank you and regards,
Vedad