Add row on csv based grid.
Hi Alex
I have now used the array based grid for some time now, i'm starting to use csv based grid, and it was also working well with editing and saving, but i am almost out of hair now, when doing and addRow on a csv based grid it's doing something funny, below is the addRow function i use for test.
function addRow(){
var i = grid.getRowCount()
alert(grid.getRowCount())
grid.addRow(i);
alert(grid.getRowCount())
}
If i have a grid with 1 loaded row, and do the addRow 3 times the alert result is :
1: alert(1) and alert(11)
2: alert(11) and alert(111)
3: alert(111) and alert(1111)
Result after add, grid contains 1111 rows.
If i have a grid with 5 loaded rows, and do the addRow 3 times the alert result is :
1: alert(5) and alert(51)
2: alert(51) and alert(511)
3: alert(511) and alert(5111)
Result after add, grid contains 5111 rows.
Please help before i loose the rest of my hair.
Flaffer
I have now used the array based grid for some time now, i'm starting to use csv based grid, and it was also working well with editing and saving, but i am almost out of hair now, when doing and addRow on a csv based grid it's doing something funny, below is the addRow function i use for test.
function addRow(){
var i = grid.getRowCount()
alert(grid.getRowCount())
grid.addRow(i);
alert(grid.getRowCount())
}
If i have a grid with 1 loaded row, and do the addRow 3 times the alert result is :
1: alert(1) and alert(11)
2: alert(11) and alert(111)
3: alert(111) and alert(1111)
Result after add, grid contains 1111 rows.
If i have a grid with 5 loaded rows, and do the addRow 3 times the alert result is :
1: alert(5) and alert(51)
2: alert(51) and alert(511)
3: alert(511) and alert(5111)
Result after add, grid contains 5111 rows.
Please help before i loose the rest of my hair.
Flaffer
Flaffer
June 8,