I need a quick way to alter the actions column. I need to replace it with one or two buttons which will call other forms and send them a GET value from one of the columns in the row.
For example:
I need two buttons which would call
edit_user.php?id=[column 1 value]
mail_form.php?id=[column 2 value]
Any help would be appreciated
To insert/replace actions column is not doable right now. You can have another column at end for this purpose.
You can review this demo:
http://www.phpgrid.org/demo/demos/appearance/custom-row-button.php
And code:
http://www.phpgrid.org/demo/demos/appearance/custom-row-button.phps
I am adding this need in todos.
I need an answer here also. The sample code above returns the row id in an alert box using js. How do we return, for example, the value in the “total” cell in the row? I need something like that passed to another php module.
You can use column names instead of ‘id’. Any string that is set inĀ $col[“name”] property.
e.g. {total} will give the column total value of that row.