It happens at this knockout function
7 Answers, 1 is accepted
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; Media Center PC 6.0)
Timestamp: Mon, 1 Oct 2012 02:21:54 UTC
Message: Object doesn't support this property or method
Line: 4906
Char: 17
Code: 0
URI: .../Assets/Scripts/libraries/kendo.all.js
Code version is:
kendoui.aspnetmvc.2012.2.913.commercial
jQuery version is
//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Code:$(document).ready(function () {
var orderDataSource = new kendo.data.DataSource({
pageSize: 10,
transport: {
read: {
url: MyOrdersUrl,
dataType: "json"
}
},
schema: {
data: "d"
}
});
orderDataSource.read();
$("#grid").kendoGrid({
dataSource: orderDataSource,
filterable: true,
sortable: true,
pageable: {
refresh: true,
pageSizes: true
},
columns: [
{ field: "Id" },
{ field: "OrderDate" },
{ field: "DueDate" },
{ field: "Phone" },
{ field: "Type" }
]
});
});
I have a kendo grid on a page that also contains knockout. When the knockout bindings are applied, I get the exact error that Alex mentioned.
If I remove 'filterable: true' from the kendo grid definition, I do not receive this error.
Any ideas???
Oh yeah, my grid is declared in javascript...
Hope this works for you too..