I have a store connected to a model. One propertie of the model instance is an Array. I have set the type propertie to 'auto'. I have connected this store to a grid and this is where I have encountered trouble. How should I change the settings to display all the array instances inside the grid. Is this possible? Now I only see [object:Object]. Please see screenshot:
Asked
Active
Viewed 77 times
2
-
The screen shot is not visible. Kindly give some link or upload again. – Talha Masood Dec 24 '13 at 12:06
2 Answers
2
Just add a renderer field to the column with a .toString() method on the value. For example:
Ext.create('Ext.grid.Panel', {
...
columns: [
{
text: 'Title',
dataIndex: 'somearrayrecord'
renderer: function(value) {
return value.toString();
}
},
],
...
});
This will use javascript's array.toString() method, which will print out the values in your array.

Kyle Fransham
- 1,859
- 1
- 19
- 22