-
February 9th, 2010, 10:56 AM
#1
DynaMetapushTable - approaching a specific cell in javascript
Hi,
using DynaMetapushTable - Is there any way to approach a specific cell that was automatically created by the table?
I want to create a table and for each row create a button that when pressed, will activate a javascript code on the specific row - for instance, delete it.
in order to do that I have to get the ID of the row - how can I do that?
thank you?
Shay
-
February 9th, 2010, 02:47 PM
#2
hi,
through the onChangingValues callback you can obtain the dom node of the updateing row (that is a clone of the template) as it is passed as the second parameter in the call, or, if setPushedHtmlEnabled is set to true, inject your html as the formatted value of one of the field (you could use a client-side field for this purpose with the addField method but note that setPushedHtmlEnabled must be true anyway for the entire table)
HTH
-
February 9th, 2010, 02:50 PM
#3
please also note that you should not remove rows client-side as with a DynaMetapushTable the results in doing so can be unpredictable, so do it at your own risk.
The correct way to remove a line from a DynaMetapushTable is to send a DELETE command from the server.
Similar Threads
-
By zeos in forum Adapter SDKs
Replies: 1
Last Post: January 28th, 2010, 09:41 AM
-
By CitiMan in forum General
Replies: 13
Last Post: September 22nd, 2009, 04:57 PM
-
By garyj in forum Client SDKs
Replies: 3
Last Post: May 14th, 2008, 10:01 AM
-
By burakalpugan in forum Adapter SDKs
Replies: 2
Last Post: April 11th, 2008, 03:16 PM
-
By garyj in forum Adapter SDKs
Replies: 1
Last Post: March 25th, 2008, 09:03 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:41 AM.
Bookmarks