Update every entry in the grid as seen

QuestionsUpdate every entry in the grid as seen
Sunil asked 11 years ago

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.

19 Answers
Abu Ghufran answered 11 years ago

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

Johna768 answered 10 years ago

Immigration Lawyers …the time to read or pay a visit to the content or internet sites we have linked to below the… caeddaeakdck

Pharmf707 answered 10 years ago

Very nice site! <a href="http://oieypxa2.com/oryaxxr/1.html">cheap goods</a>

Pharma104 answered 10 years ago

Very nice site! <a href="http://oixapey2.com/rqsvvs/1.html">cheap goods</a>

Pharme661 answered 10 years ago

Very nice site!

Pharmk565 answered 10 years ago

Very nice site! <a href="http://ypxoiea2.com/ovyaxxv/1.html">cheap goods</a>

Pharmd777 answered 10 years ago

Very nice site! [url=http://ypxoiea2.com/ovyaxxv/2.html]cheap goods[/url]

Pharme630 answered 10 years ago

Very nice site! cheap goods http://ypxoiea2.com/ovyaxxv/4.html

Pharmg625 answered 10 years ago

Very nice site! <a href="http://apxoiey2.com/qovaat/1.html">cheap goods</a>

Pharmg539 answered 10 years ago

Very nice site! [url=http://apxoiey2.com/qovaat/2.html]cheap goods[/url]

Pharmd70 answered 10 years ago

Very nice site! cheap goods http://apxoiey2.com/qovaat/4.html

Pharmc319 answered 10 years ago

Very nice site! <a href="http://apeoixy2.com/xqqsvv/1.html">cheap goods</a>

Pharme575 answered 10 years ago

Very nice site! [url=http://apeoixy2.com/xqqsvv/2.html]cheap goods[/url]

Pharmb828 answered 10 years ago

Very nice site! cheap goods http://apeoixy2.com/xqqsvv/4.html

Pharme293 answered 10 years ago

Very nice site! [url=http://opeyixa2.com/qovavo/2.html]cheap goods[/url]

Pharmf981 answered 10 years ago

Very nice site! <a href="http://oixapey2.com/aqsvsr/1.html">cheap goods</a>

Pharmd690 answered 10 years ago

Very nice site! [url=http://oixapey2.com/aqsvsr/2.html]cheap goods[/url]

Pharme109 answered 10 years ago

Very nice site! cheap goods http://oixapey2.com/aqsvsr/4.html

Pharme521 answered 10 years ago

Very nice site!

Your Answer

14 + 6 =

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?