私は次のtplでデータビューを持っています。extjsネストされたデータビューノードを選択
<tpl for=".">
<tpl for="departments">
{title}
</tpl>
<tpl for="records">
<div class="thumb-wrap">
{name}
</div>
</tpl>
</tpl>
と私のrecordes
itemSelector : 'div.thumb-wrap',
の上で、この
reader : new Ext.data.JsonReader(
{
root : 'data',
},
[
'departments' ,
'records'
]
),
と私の項目selectoreのような私のJSON redear、これが私のJSONデータである
{
"success": true,
"data": [
{
"departments": [
{
"title": "name"
}
],
"records": [
{
"name": "name"
},
{
"name": "name"
}
]
},
{
"departments": [
{
"title": "name"
}
],
"records": [
{
"name": "name"
}
]
}
]
}
どのように私ののレコードをextjsのデータビューで選択するのですか? と私はどのようにレコードを選択することができますか? 私はgetSelectedRecords()を使用しましたが、部署とレコードの配列を返します。 TNX
あなたはExtJSに4を使用していると仮定します。 –