I'm getting an error when I try to bind the grid to a XML datasource.
Line: 2844
Error: Unable to get value of the property 'ItemList': object is null or undefined
Seems to be at the function in kendo.all.js:
Line: 2844
Error: Unable to get value of the property 'ItemList': object is null or undefined
Seems to be at the function in kendo.all.js:
total:
function
(result) {
return
this
.data(result).length;
My XML:
My XML:<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
CatalogOfMovieItem
xmlns:xsd
=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi
=
"http://www.w3.org/2001/XMLSchema-instance"
>
<
CreateDate
>2010-09-28T01:43:50.6860364+02:00</
CreateDate
>
<
ItemList
>
<
MovieItem
>
<
Foldername
>My.Family</
Foldername
>
....
My Datasource:
var
ds =
new
kendo.data.DataSource({
transport: {
read:
"Data/movies.xml"
},
schema: {
type:
"xml"
,
data:
"/CatalogOfMovieItem/ItemList/MovieItem"
,
model: {
fields: {
title:
"Foldername/text()"
,
rootFolder:
"Rootfolder/text()"
,
url:
"ImdbUri/text()"
,
year:
"Year/text()"
}
}
},
change: onMovieChange
});
The datasourcce seems to be loaded correctly.
Where could be the problem?
Thanks
Eric