Use of jqgrid API (getGridParam and getRowData)

QuestionsUse of jqgrid API (getGridParam and getRowData)
Tukur Dan-ASabe asked 2 years ago

Please help me on how to get the selected grid row data and manipulate it using my custom sql query such as select  and delete (eg. move the data from table1 to table2 using the row id) from database say MYSQL.

Thank and regards

 

4 Answers
Abu answered 2 years ago

We don’t have any demo ready for this, but this can be done using custom on_update callback function. In that, you can select items using bulk update and in callback function, delete from table1 and insert in table2.

Refer these docs and demos.

https://www.gridphp.com/docs/grid-events/

Bulk Update demo: https://www.gridphp.com/demo/demos/editing/bulk-edit.php
Code: https://www.gridphp.com/demo/demos/editing/bulk-edit.phps

Tukur Dan answered 2 years ago

Thank you Mr Abu, I will try this method.

Tukur Dan answered 2 years ago

Pls how do I associate or assign an id for example below to a particular colunm of the grid not neccesarally the current column?

http://localhost/?Nid={id}”

Thanks for your support

Tukur Dan answered 2 years ago

Please how do I associate or assign an id for example below to a particular row/column of the grid not necessarily the current row/column?

http://localhost/?Nid={id}”

Thanks for your support

Your Answer

18 + 15 =

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 0 / 5. Vote count: 0

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?