How do I programatically add/delete rows of a grid? Similar how you would do it with a list.
Let's say I have a field for the title and an "Add" button above my grid.
1) When I click the button a new row with two columns will be added to the grid.
2) The value of the title field is added to the left-hand column of the grid. The right-hand column of the grid will have a delete button.
3) When I click the delete button that row of the grid will be deleted.
Code to add rows to a list:
var list = Tiggr("mylist");
var title = Tiggr("txtTitle").val();
if(title == "") {
alert("You must enter a Title!");
return;
}
list.append("lia rel="nofollow"" + title + "/a/li").listview("refresh");
Tiggr("txtTitle").val("");
~ Jason