:: Forum >>
add Row
Hi Alex
Thank for the new control.
Trying to Add a row is not trivial
Imagine i have an Array (table) and a grid(obj).
I would like to add a new item to the array then update the grid by adding a row then refresh with the new data.
I was not successfull to do that.
Any help appreciated
Paul
Wednesday, November 30, 2005
There are examples for this all around the forum...
So even though it is not trivial, a lot of help has already been provided for this issue...
/javascript.forum.62.11/sorting.html
/javascript.forum.1006.19/add-and-delete-a-row.html
Paul also!!!
Wednesday, November 30, 2005
2.0 beta3 now includes addRow and deleteRow methods (though for js array only, not yet for xml/csv). You can add item to your array and then call obj.addRow(i); where i is the index of the new row.
There is also an example in the /examples/new/add delete row.htm
Alex (ActiveWidgets)
Wednesday, November 30, 2005
2.0 beta3 now includes addRow and deleteRow methods (though for js array only, not yet for xml/csv). You can add item to your array and then call obj.addRow(i); where i is the index of the new row.
There is also an example in the /examples/new/add delete row.htm
Alex (ActiveWidgets)
Wednesday, November 30, 2005
Paul (also!)
I'm using the beta3 so it should more simple !
Also i read in the above thread:
"AW 2.0 b3 is supposed have the add/delete/update rows functionality for the AW.XML.Table.
Rick Villela
Thursday, November 10, 2005"
Do you know if it is true ?
Paul 2
Paul
Wednesday, November 30, 2005
Alex
Assuming:
myData["444"] = ["CA", "Computer Associates Inter", "15,606.335", "3,164.000"];
myData["555"] = ["ERTS", "Electronic Arts Inc.", "14,490.895", "2,503.727"];
..
myData["666"] = ["ERTS", "Electronic Arts Inc.", "14,490.895", "2,503.727"];
obj.addRow(myData.length++);
This code does add a line but a black one
Paul
Wednesday, November 30, 2005
Oops i forgot to tell you that i want obviously to add myData["666"]
Paul
Wednesday, November 30, 2005
then you should call obj.addRow("666");
Alex (ActiveWidgets)
Wednesday, November 30, 2005
Thanks
Paul
Wednesday, November 30, 2005
Hi Alex
How would you add a new row that has RowIndices.
Thanks
Minh
Monday, May 1, 2006
This topic is archived.
Back to support forum
Forum search