I need to load data into my treestore. My ajax request give me XML data without leaf and text attribute. How I can map them ?
<items>
<item>mytext</item>
<item>mytext2</item>
...
</items>
I know for leaf property but for text I tried mapping in my model:
fields: [
{ name: 'leaf' , type: 'boolean' , defaultValue: true } ,
{ name: 'text', mapping: 'item'},
]
and the reader in my proxy store:
reader: { type: 'xml',root: 'items' , record: 'item' }
I have all the nodes but without text =/
Please help me !
-kyrillos
I found an other solution :