I have a model in extjs like this:
Ext.define('Game', {
extend: 'Ext.data.Model',
fields: [
{ name: 'id', type: 'int' },
{ name: 'Name', type: 'string' },
//{ name: 'levels' , type:'array'},
]
});
I want to use this model for a grid store,but its third property
//{ name: 'levels' , type:'array'}
is an array of data which i want to show them in dynamically created columns of my grid. I think maybe associations on extjs model may bring me a solution but i'm confused how to use them.any solution will be appriciated.
Ext.data.Types
and convert your custom data. – A1rPun