It is weird, I need tech support to have this check, wondering if anything wrong inside the below script to make code fail to display.
debug error: Uncaught TypeError: Object [object Object] has no method 'prop'
Thanks
<div id="grid"></div>
<script type="text/x-kendo-template" id="template">
<input type="search" id="category"></input>
</script>
<script>
$(document).ready(function () {
var grid = $('#grid').kendoGrid({
dataSource: datasource,
toolbar: kendo.template($("#template").html()),
});
var dropDown = grid.find("#category").kendoDropDownList({
dataTextField: "CategoryName",
dataValueField: "CategoryID",
autoBind: false,
optionLabel: "All",
dataSource: categoryDataSource,
change: function () {
var value = this.value();
if (value) {
grid.data("kendoGrid").dataSource.filter({ field: "CategoryID", operator: "eq", value: parseInt(value) });
} else {
grid.data("kendoGrid").dataSource.filter({});
}
}
});
</script>
debug error: Uncaught TypeError: Object [object Object] has no method 'prop'
Thanks
<div id="grid"></div>
<script type="text/x-kendo-template" id="template">
<input type="search" id="category"></input>
</script>
<script>
$(document).ready(function () {
var grid = $('#grid').kendoGrid({
dataSource: datasource,
toolbar: kendo.template($("#template").html()),
});
var dropDown = grid.find("#category").kendoDropDownList({
dataTextField: "CategoryName",
dataValueField: "CategoryID",
autoBind: false,
optionLabel: "All",
dataSource: categoryDataSource,
change: function () {
var value = this.value();
if (value) {
grid.data("kendoGrid").dataSource.filter({ field: "CategoryID", operator: "eq", value: parseInt(value) });
} else {
grid.data("kendoGrid").dataSource.filter({});
}
}
});
</script>