Hello
I'm using kendoTreeview with drag options, all works fine. The draggable content is (by default) the dragged item of the treeview, which is fine as well. There is a class (font awesome char) that is defined on each item I would like to remove in the dragged content when the drag starts. The solution I found so far in this forum was on :
I've tried this: here and it works well but its only working on initialisation of the treeview. So I adapted to it to my case because I need to change the content change at runtime (treeview.change):
$("#dialogtreediv").data("kendoTreeView").templates.dragClue = kendo.template("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'/>drag me!</div>");
This won't work, looks like it will be ignored (dragged item content still visible). But this is anyway all too much. I don't want to rebuild the whole item text that is dragged. I would like to remove only a single sign in the dragged item content (represented by a fa-class from awesome font, jQuery available). So I wonder how to do this or how to access the dragged content.
Regards
Hello,
I have implemented the kendo Editor via MVVM inside a kendo window. However, when i have the console open, everytime i click on any of the edit tools to edit the editor's value, i get a "Uncaught TypeError: Cannot read property 'getSiteSettings' of undefined". However, the controls still work. Can you please advise?
Recently, I have tried to minimize the size of my Kendo js file. I am only selecting elements that I have used in the application. On publishing the application I am getting this error in the console. Any idea, which dependent js files are missing.
Below the error:
kendo.all.min_latest.js:9 Uncaught TypeError: p.HierarchicalDragAndDrop is not a constructor
at init._dragging (kendo.all.min_latest.js:9)
at new init (kendo.all.min_latest.js:9)
at HTMLDivElement.<anonymous> (kendo.all.min_latest.js:2)
at Function.each (jquery.min.js:3)
at init.each (jquery.min.js:3)
at init.e.fn.(anonymous function) [as kendoTreeView] (http://localhost:8080/app/kendo2015/kendo.all.min_latest.js:2:2754)
at ChartTablesTree.prepareView (chartTablesTree.js:882)
at Worker.$thisClass.processTableColumnWorker.onmessage (chartTablesTree.js:509)
Hi,
So as my title says, Im trying to extract some options from the scheduler widget, namely the 'workDayStart' and 'workDayEnd' date/times. The reason being is that if an existing appointment is outside the work times, I'd like to auto display the full day instead of just working hours.
Which brings me to the next issue, is there a way to programmatically change the 'showWorkHours' config?
Thanks and kind regards,
Grant

We have a very large datastore connected to a kendo grid, so it's important that the DataSourceRequest object is translated to the sql for server paging, filtering, etc.
One issue is that the datastore stores employee ids and we want to display their names and have a checkbox filter datasource that shows all unique names (not just the names from the paged views).
I have this all working but I'm currently hijacking the DataSourceRequest and manually parsing through and converting the FIlterDescriptor objects from the display names to the ids in the database.
I've done plenty of wrangling trying to get this all to work with client templates to no avail.
Here's a code snippet that represents what I'm doing. Is there a better approach?
<p>public JsonResult GetAssets([DataSourceRequest] DataSourceRequest request){ var assetQuery = _assetRepository.GetAllKendoReadOnly(); request = ToAssetDataSourceRequest(request); //converts filters from name to id var assets = assetQuery.ToDataSourceResult(request, ToAssetViewModel); //ToAssetViewModel populates names from ids return Json(assets, JsonRequestBehavior.AllowGet);} private DataSourceRequest ToAssetDataSourceRequest(DataSourceRequest request){ if (request.Filters != null && request.Filters.Any()) { foreach (var iFilter in request.Filters) { ConvertFilter(iFilter); } } return request;} private void ConvertFilter(IFilterDescriptor descriptor){ switch (descriptor) { case FilterDescriptor filterDescriptor: ToConvertedDescriptor(filterDescriptor); break; case CompositeFilterDescriptor compositeFilterDescriptor: foreach (var compositeFilter in compositeFilterDescriptor.FilterDescriptors) { ConvertFilter(compositeFilter); } break; }} private void ToConvertedDescriptor(FilterDescriptor filter){ switch (filter.Member) { case "OnwerName": filter.Member = "OwnerEmployeeNumber"; filter.Value = GetEmployeeNumber(filter.Value.ToString()); break; case "CustodianName": filter.Member = "CustodianEmployeeNumber"; filter.Value = GetEmployeeNumber(filter.Value.ToString()); break; case "UserName": filter.Member = "UserEmployeeNumber"; filter.Value = GetEmployeeNumber(filter.Value.ToString()); break; }}</p><p></p>function addCellClickEventListener()
{
var grid = $('#grid').data('kendoGrid');
$(grid.tbody).on('click',"> tr:not(.k-grouping-row, .k-detail-row, .k-group-footer) td.dow", function(){
// get some additional data from the server based on values from the row to
// which the clicked-on cell belongs -- works OK -- reference to grid is valid
.
.
.
var windowObject = $("#messagewindow").data("kendoWindow").open();
// windowObject is undefined
});
}

StockChart do not display last item from dataSource when changing selection of navigation in javascript code. Currently I'm using 2016.1.412 but this is the same problem with latest version. After setting navi.selection.set function chart navigation is expanding but not displaying last element from the array.
My code is working fine with kendo 2014.2.1008 but not with 2016.1.412
var lastItem = {"Date":"2018-03-20T00:00:00.000Z","Open":99.95,"High":109.9,"Low":92.7,"Close":92.7,"value":92.7,"volume":828222,"oi":0};
var chartModel = [
{"Date":"2018-03-18T00:00:00.000Z","Open":90.15,"High":94,"Low":90.15,"Close":90.95,"value":90.95,"volume":200082,"oi":0},
{"Date":"2018-03-19T00:00:00.000Z","Open":90.2,"High":100,"Low":90.2,"Close":100,"value":100,"volume":281,"oi":0},
{"Date":"2018-03-20T00:00:00.000Z","Open":99.95,"High":109.9,"Low":92.7,"Close":92.7,"value":92.7,"volume":828222,"oi":0}
];
$("#stock-chart").kendoStockChart({
dataSource: {
data: chartModel
},
title: {
text: "The Boeing Company \n (NYSE:BA)"
},
dateField: "Date",
series: [{
type: "candlestick",
openField: "Open",
highField: "High",
lowField: "Low",
closeField: "Close"
}],
navigator: {
series: {
type: "area",
field: "Close"
}
}
});
$("#set").click(function setSelection() {
var chart = $("#stock-chart").getKendoStockChart();
var navi = chart._navigator;
chart.dataSource.data(chartModel);
if (navi) {
navi.selection.set(
new Date(chartModel[0].Date),
new Date(chartModel[chartModel.length - 1].Date)
);
if (navi._selectEnd) {
navi._selectEnd();
}
chart.dataSource.data(chartModel);
}
});
setInterval(function(){
lastItem.Date = new Date(lastItem.Date).setDate(new Date(lastItem.Date).getDate() + 1);
chartModel.push(Object.assign({},lastItem));
}, 3000);
