PDA

View Full Version : How do I manually add a row to a gird?



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

Animal
10 Mar 2007, 5:29 AM
http://www.yui-ext.com/forum/viewtopic.php?t=3301#15574

soad
10 Mar 2007, 5:36 AM
Wow!

You reply was so fast. I read the thread and it helped me.

Thanks.

genius551v
14 Aug 2007, 11:51 AM
link dont open,

can you post your solution please?

tnks