Hi,
In the grid can we have an option for updating every entry,
Like select all the entries and change all of status as seen through a dropdown?
my grid contains the following
$col = array();
$col["title"] = "Id";
$col["name"] = "id";
$col["width"] = "5";
$col["editable"] = false;
$cols[] = $col;
$col = array();
$col["title"] = "Client ID";
$col["name"] = "client";
$col["width"] = "10";
$col["search"] = true;
$col["hidden"] = true;
$col["editable"] = true;
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>$client_str);
$col["formatter"] = "select";
$col["editrules"] = array("edithidden"=>true);
$cols[] = $col;
$yesno = "0:No;1:Yes";
$col = array();
$col["title"] = 'Error';
$col["name"] = 'error';
$col['width'] = "15";
$col['edittype'] = select;
$col['editoptions'] = array('value'=>$yesno);
$col['formatter'] = "select";
$col['editable'] = true;
$col['editrules'] = array('required'=>true);
$cols[] = $col;
$col = array();
$col["title"] = "Error Date";
$col["name"] = "error_date";
$col["width"] = "20";
$col["formatter"] = "date";
$col["editoptions"] = array("size"=>20, "defaultValue"=>null);
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'Y-m-d H:i:s');
$col["editable"] = true;
$cols[] = $col;
// dropdown for qc
$col = array();
$col["title"] = 'QC';
$col["name"] = 'qc';
$col['width'] = "15";
$col['edittype'] = select;
$col['editoptions'] = array('value'=>$yesno);
$col['formatter'] = "select";
$col['editable'] = true;
$col['editrules'] = array('required'=>true);
$cols[] = $col;
$col = array();
$col["title"] = "Start Date";
$col["name"] = "start_time";
$col["width"] = "20";
// $col["datefmt"] = "Y-m-d";
$col["formatter"] = "datetime";
// $col["default"] = Date('Y-m-d H:i:s');
$col["editoptions"] = array("size"=>20, "defaultValue"=>Date('Y-m-d H:i:s'));
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'Y-m-d H:i:s',"opts" => array("changeYear" => false, "currentText"=> 'Start', "showButtonPanel"=> true ));
$col["editable"] = true;
$cols[] = $col;
$col = array();
$col["title"] = "End Date";
$col["name"] = "end_time";
$col["width"] = "20";
$col["datefmt"] = "Y-m-d";
$col["formatter"] = "datetime";
$col["editoptions"] = array("size"=>20, "defaultValue"=>Date('Y-m-d H:i:s'));
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'Y-m-d H:i:s',"opts" => array("changeYear" => false, "currentText"=> 'Stop', "showButtonPanel"=> true ));
$col["editable"] = true;
$cols[] = $col;
$staus = "0:Unseen;1:Seen"
$col = array();
$col["title"] = 'Status';
$col["name"] = 'status';
$col['width'] = "15";
$col['edittype'] = select;
$col['editoptions'] = array('value'=>$staus);
$col['formatter'] = "select";
$col['editable'] = true;
$col['editrules'] = array('required'=>true);
$cols[] = $col;
The staus column has to be updated for every 1000 files every day from "Unseen" to "Seen". Please help.
Hello,
Yes, this function is available in full version.
Feature is called 'Bulk Edit', and use toolbar button for the form.
Check this demo: http://www.phpgrid.org/demo/demos/editing/bulk-edit.php
To get full version: http://phpgrid.org/download -> Buy
Immigration Lawyers …the time to read or pay a visit to the content or internet sites we have linked to below the… caeddaeakdck