1
私は剣道UIリストのコンポーネントを使用しており、リモートソースからデータを取得しています。データソースの定義は次のとおりです。剣道UI:Uncaught TypeError:未定義の 'toLowerCase'プロパティを読み取ることができません
$("#location-manage-grid").kendoTreeList({
dataSource: new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: "api/getLocation",
dataType: "json"
}
},
schema: {
model: {
id: "id",
location: "location",
hierarchy: "hierarchy",
hasChildren: "hasChildren",
map: "map"
}
}
}),
height: 600,
pageable: true,
columns: [
{ field: "hierarchy", title: "Hierarchy", width: 250 },
{ field: "location", title: "location", width: 250 },
{ field: "map", title: "map", width: 250 },
{ title: "Edit", command: [ "edit", "destroy" ], width: 250, attributes: { style: "text-align: center;" } }
]
});
データソースのURLの応答は、私がアプリケーションを実行すると、それは言ったエラー、持っている、しかし
[{"hasChildren":true,"hierarchy":"Kendo ui","location":"New York","id":1,"map":true}]
です:
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
を私はスキーマ定義をチェックして、どこが間違っているのか本当に見つけられません。なぜ誰が知っていますか?
可能な複製:http://stackoverflow.com/questions/23723005/uncest-typeerror-cannot-read-property-tolowercase-of-undefined – Daniel
ここに貼り付けるのと同じではない、私は間違いを見つけた私は作った。 – ahwyX100
私達に教えてください。原因は何ですか? – Daniel