I've created a simple Odata service that reads the contents of a single local SQL table. My service works correctly, I've checked in Postman, but the Kendo UI grid throws the following error:
Uncaught TypeError: Cannot read property '__count' of undefined
I checked entries on the board, and I've seen several that refer to the version of Odata. They imply that you need to use an older version of OData to work with the grid. The version I'm using is v4.0.30319. Will this version work with Kendo UI grid? Or does the error point to something else?
here's my html:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="styles/kendo.common.min.css" rel="stylesheet" />
<link href="styles/kendo.default.min.css" rel="stylesheet" />
<script src="js/jquery.min.js"></script>
<script src="js/kendo.all.min.js"></script>
</head>
<body>
<div id="example">
<div id="grid"></div>
<script>
$(document).ready(function() {
$("#grid").kendoGrid({
dataSource: {
type: "odata",
transport: {
read: "//localhost:49666/CustomerComplaintDataService.svc/Complaints"
},
schema: {
model: {
fields: {
RecordNumber: { type: "number" },
Date: { type: "date" },
Brand: { type: "string" },
Filter_part_number: { type: "string" },
PlantMfrgLoc: { type: "string" },
Date_code: { type: "string" },
Person_talked_to: { type: "string" },
Phone_number: { type: "string" },
Company_Name: { type: "string" },
Product_Complaint: { type: "string" },
Action_taken: { type: "string" },
Results: { type: "string" },
Call_taken_by: { type: "string" },
Customer_Required_Response: { type: "string" },
Risk_Level: { type: "string" }
}
}
},
pageSize: 20,
serverPaging: true,
serverFiltering: true,
serverSorting: true
},
height: 550,
filterable: true,
sortable: true,
pageable: true,
columns: [{
field: "RecordNumber",
filterable: false
},
"Brand",
{
field: "Date",
title: "Date",
format: "{0:MM/dd/yyyy}"
}, {
field: "Product_Complaint",
title: "Product Complaint"
}, {
field: "Action_taken",
title: "Action Taken"
}
]
});
});
</script>
</div>
</body>
</html>
Thanks in advance,
Mark
Hello, I have a Menu widget as a child of a Toolbar. I am disabling the menu using the following code:
myToolbar.enable(myMenu, false);
This correctly shows the menu widget as disabled (i.e. it's grayed out), but when I click the menu, it is still displaying the drop down menu under the button. Shouldn't calling enable with a value of false cause click events to be ignored? How can I accomplish this?
Thanks in advance
David


I would like to have a Kendo Scheduler of a complete year where a major tick is a month, and a minor tick is half of the month.
I created a custom view representing an year, that's ok but this view represent an year where each majortick is a day due to the majortick that can have only minutes values.
This is the custom view:
(function ($, undefined) { var kendo = window.kendo, ui = kendo.ui, SchedulerTimelineView = ui.TimelineView, extend = $.extend, NS = ".kendoTimelineYearView"; var SchedulerTimelineYearView = SchedulerTimelineView.extend({ nextDate: function() { var start = this.startDate(); return new Date(start.getFullYear()+1, 0, 1); }, previousDate: function() { var start = this.startDate(); return new Date(start.getFullYear()-1, 0, 1); }, calculateDateRange: function() { var selectedDate = this.options.date, start = new Date(selectedDate.getFullYear(), 0, 1), end = kendo.date.previousDay(new Date(selectedDate.getFullYear()+1, 0, 1)), dates = []; while (start <= end) { dates.push(start); start = kendo.date.nextDay(start); //start = dateAdd(start, 'month', 1); } this._render(dates); } }) //extend UI extend(true, ui, { SchedulerTimelineYearView: SchedulerTimelineYearView }); })(window.kendo.jQuery);this are the property of the view in the init:
{ type: "kendo.ui.SchedulerTimelineYearView", title: "Year", majorTick: 1440*30, // 30 days but i want exactly a month minorTickCount: 2, columnWidth: 50},
When performing an update on the grid it sends all column data.
How can I Send only changed (with dirty class) data?
Hi,
After upgrading recently, the browser shows error message as shown in attachment. The scenario is that I have a tree structure and will step through each node, and show or hide a button for each step. Then for each execution, we get the error message in browser console, which is annoying. It worked fine before and not sure if we need to change after upgrading. Can you help me to detect it? Thanks.
Best regards,
James
Hi all,
I am rather new to JS and Kendo UI and I am trying to hook up a Kendo UI Grid to a sharepoint list via the Sharepoint REST Interface.
So far I have set up a datasource for read, create, update and destroy and it is working like charm. My biggest issue I have are the different Sharepoint field types.
CRUD operations for simple text, date, number fields are working without an issue. But I don't understand how to implement fields like choice filelds, lookupfields, people and groups fields. Can somebody show me an working example how to properly display a people-and-groups column in the grid and how to edit it? Same for a choice field.
Many thanks in adavance.
Hello
I keep getting null values I am trying to get a list of int or string for selected DataValueField.
Thank you,
@using (Html.BeginForm("SetPermitValues", "BusinessLocation"))
{
<div class="modal-body">
<label asp-for="SelectedPermitTypes" class="control-label"></label>
@(Html.Kendo().MultiSelectFor(b => b.SelectedPermitTypes)
//.Name("businessPurposes")
.HtmlAttributes(new { style = "width:100%" })
.Placeholder("Choose...")
.DataValueField("Value")
.DataTextField("Text")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetPermitTypesAsync", "BusinessLocation", new { id = Model.Id });
});
})
)
<span asp-validation-for="SelectedPermitTypes" class="text-danger"></span>
</div>
<div class="modal-footer">
<button type="button" id="HidebtnModal" class="btn btn-primary">Cancel</button>
<button type="submit" class="btn btn-primary">Add New Permit</button>
</div>
}
[HttpPost]
public ActionResult SetPermitValues(List<int> Value)
{
}
