Hello,
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.
Regards,
Samsun
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.
Ref:
// event handler to manage Bulk Operations
$e["on_update"] = array("update_data","",true);
$g->set_events($e);
function update_data($data)
{
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)
}
}