Search found 9 matches

Go to advanced search

by Jason Cochran
Fri Aug 17, 2012 7:45 pm
Forum: Issues
Topic: Passing ARRAY types as Request Parameters in a REST Service?
Replies: 13
Views: 1887
 
Jump to post

Passing ARRAY types as Request Parameters in a REST Service?

In regards to REST services, how do you give a request parameter of type of ARRAY? I am trying to add a relation between Parse.com's Users class and my own class. You have to be able to pass it an array of object parameters. ==== PARSE.COM DOCUMENTATION ================================= In order to ...
by Jason Cochran
Thu Aug 16, 2012 9:52 pm
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

In hindsight, it would be better not to use a row number, because when you delete one, the order will become useless. Another method is this: =============================================================== Tiggr("myGrid tbody").empty(); // empty the grid; the default is one row from the bu...
by Jason Cochran
Thu Aug 16, 2012 9:29 pm
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

OK I got it! $("[dsid='myGrid']") // this is the alternate syntax for Tiggr("myGrid") function deleteRow(rowId) { var rowTarget = "[dsid='myGrid'] tr:eq(" + rowId + ")"; $(rowTarget).remove(); } ref: http://blog.tiggzi.com/2011/09/gettin...
by Jason Cochran
Thu Aug 16, 2012 9:22 pm
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

I have the code that adds rows to a grid working (which I will share later).

So how would I delete a row from a grid called myGrid?

the following does not work for me:

Code: Select all

  Tiggr("myGrid tr:eq(1)").remove(); 

ref: http://stackoverflow.com/questions/58...

by Jason Cochran
Thu Aug 16, 2012 9:02 pm
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

I have the code that adds rows to a grid working (which I will share later).

So how would I delete a row from a grid called myGrid?

Tiggr("myGrid tr:eq(1)").remove(); // this would delete the second row of the table

ref: http://stackoverflow.com/questions/58...

by Jason Cochran
Thu Aug 16, 2012 6:41 pm
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

OK. So it is essentially a table?

by Jason Cochran
Thu Aug 16, 2012 5:06 pm
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

cool, thanks!

do you have any sample code for manipulating the grid (adding\deleting rows)?

by Jason Cochran
Thu Aug 16, 2012 3:00 am
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

What would also be nice is if there was a way to create a split list.

http://jquerymobile.com/test/docs/lis...

by Jason Cochran
Thu Aug 16, 2012 2:56 am
Forum: Issues
Topic: How to programatically add/delete rows of a grid?
Replies: 18
Views: 3407
 
Jump to post

How to programatically add/delete rows of a grid?

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 t...

Go to advanced search