Add row on csv based grid.
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.
var i = 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.
I have tried with :
var i = Number(grid.getRowCount())
I have verified that i is a number before calling addrow by:
It seams that the string thing happens inside addRow(), has anybody used addRow on a csv grid, please.
Can you tell me if there is done anything about this, or give me an working example with CSV.table with addRow, please the deadline i closing and i need to know if i need to take another approach and reprogram.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.