Hi, I am new to ExtJS. In examples, I do not find any one similar to my situation: I have an Array of Object like bellow: arr = new Array(); obj = new Object(); obj.StringField = "Field1"; obj.IntField = 1; arr.push(obj); obj = new Object(); obj.StringField = "Field2"; obj.IntField = 3; arr.push(obj); obj = new Object(); obj.StringField = "Field3"; obj.IntField = 5; arr.push(obj); How to put this in to GridPanel?
A:
You can create a grid panel with an ArrayReader : http://www.sencha.com/learn/Manual:Data:Readers:ArrayReader
There's also an example: http://dev.sencha.com/deploy/ext/examples/grid/array-grid.html
Bogdan
2010-10-15 15:30:42