Custom Actions Column

QuestionsCustom Actions Column
avpman asked 5 years ago

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

4 Answers
Abu Ghufran answered 5 years ago

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.

Faisal Ayub answered 2 weeks ago

I need to know if this is already acheived?

Jim Varrone answered 2 weeks ago

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.

 

 

Abu Ghufran Staff answered 2 weeks ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

2 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?