Login Register

Adding a row to grid

Hi,
I use grid with ItemFileWritestore.No I use grid.model.store.newItem(oneEntry) to add a new item to grid. Even though it is working, found to be too slow that I cant use it. So is there a another way to add a row?

thanks

My way to add a row

Hello, i don't know if this is a best way to add a row, but is another one:

model.insert(oneEntry,position);

I add rows in my grid with this function:

Taula.prototype.insert = function(cadena,posicio)
{
if((posicio>this.model.getRowCount())||(posicio<0))
posicio=this.model.getRowCount();

this.model.insert(cadena,posicio);
}