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.St开发者_如何学PythonringField = "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?
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
精彩评论