soad
10 Mar 2007, 5:10 AM
Greetings all,
what I need to accomplish is simple: I want to find a way to manually add rows to my grid. I found this method in the Ext.data.Store:
add : function(records){
records = [].concat(records);
for(var i = 0, len = records.length; i < len; i++){
records[i].join(this);
}
var index = this.data.length;
this.data.addAll(records);
this.fireEvent("add", this, records, index);
}
The code looks like what I need. But I cannot understand what I should pass as the "records" parameter.
Keywords: manually add row grid addRow
what I need to accomplish is simple: I want to find a way to manually add rows to my grid. I found this method in the Ext.data.Store:
add : function(records){
records = [].concat(records);
for(var i = 0, len = records.length; i < len; i++){
records[i].join(this);
}
var index = this.data.length;
this.data.addAll(records);
this.fireEvent("add", this, records, index);
}
The code looks like what I need. But I cannot understand what I should pass as the "records" parameter.
Keywords: manually add row grid addRow