How must i do when i show datagrid, then i klick check box on row. If i check the row, then the row insert in other table. Like bulk, but the difference is insert in other table.
You can do your custom bulk operation after selecting grid checkboxes.
In demo sample, demos/editing/bulk-edit.php, you can define your callback function.
In that callback function, you will get checked IDs of grid, you can write your code to insert in other database table.
In bulk-edit.php code, you can see event handler, and selected IDs are passed in $data["id"] as comma separated values.
// event handler to manage Bulk Operations
$e["on_update"] = array("update_data","",true);
if ($data["params"]["bulk"] == "send-email")
$selected_ids = $data["id"]; // e.g. the selected values from grid 5,7,14 (where "id" is field name of first col)
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?