Data

QuestionsData
NAE asked 8 years ago

Hi. I have a problem withmy php grid.

is not working bulk edicion , and when I make excel exports is not working.

thank u

6 Answers
Abu Ghufran answered 8 years ago

Both features are supported in licensed version.
If you are using free, try buying a license.
If you are using licensed version, please send me your order number and code for review.

NAE answered 8 years ago

I put here my order number???

so I send u an email is still not working my phpgrid. I have a license.

it's a buyed version is not the free one.
thank you.

NAE answered 8 years ago

I need an answer for the bulk problem please.
thank you

Abu Ghufran answered 8 years ago

Hi,

Thanks for the details.
To enable bulk edit, you need to set it in set_actions.

$g->set_actions(array(
"add"=>true,
"bulkedit"=>true,

)
);

You can review demos/editing/bulk-edit.php code and compare with yours.
In case if not resolved, you can email me code for review.

NAE answered 8 years ago

I paste u here my code
<?php

include_once("config.php");

include(PHPGRID_LIBPATH."inc/jqgrid_dist.php");

// Database config file to be passed in phpgrid constructor
$db_conf = array(
"type" => PHPGRID_DBTYPE,
"server" => PHPGRID_DBHOST,
"user" => PHPGRID_DBUSER,
"password" => PHPGRID_DBPASS,
"database" => PHPGRID_DBNAME
);

$g = new jqgrid($db_conf);

$grid["caption"] = "Informe Remedy";
$grid["autowidth"] = true;
$grid["multiselect"] = true;
$grid["height"] = "600";
$grid["resizable"] = true;
$grid["shrinkToFit"] = false;
$g->set_actions(array(
"add"=>false, // allow/disallow add
"edit"=>true, // allow/disallow edit
"delete"=>true, // allow/disallow delete
"bulkedit"=>true, // allow/disallow delete
"showhidecolumns"=>true, // allow/disallow delete
"rowactions"=>true, // show/hide row wise edit/del/save option
"autofilter" => true, // show/hide autofilter for search
"export_excel" => true,
"export_csv" => true,
"export_pdf" => true,
"search" => "advance"
)
);

// export PDF file params
//$grid["export"] = array("format"=>"csv", "filename"=>"my-file", "sheetname"=>"test");
$grid["export"] = array("filename"=>"Volcado Remedy", "heading"=>"Remedy", "orientation"=>"landscape", "paper"=>"a4");
// for excel, sheet header

$grid["export"]["sheetname"] = "Remedy";
// export filtered data or all data
$grid["export"]["range"] = "filtered"; // or "all"

$g->set_options($grid);
$g->table = "remedy_src";

$out = $g->render("list1");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="../../lib/js/themes/redmond/jquery-ui.custom.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="../../lib/js/jqgrid/css/ui.jqgrid.css"></link>

<script src="../../lib/js/jquery.min.js" type="text/javascript"></script>
<script src="../../lib/js/jqgrid/js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="../../lib/js/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="../../lib/js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>

<!– Multiple Select –>
<link href="http://wenzhixin.net.cn/p/multiple-select/multiple-select.css&quot; rel="stylesheet" />
<script src="http://wenzhixin.net.cn/p/multiple-select/jquery.multiple.select.js"></script&gt;
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&quot; integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!– Latest compiled and minified JavaScript –>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js&quot; integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<title>Remedy<?php echo ucwords($tab) ?></title>
</head>
<body>
<?php include ('header.php');?>
<div style="width:95%; margin-left:auto; margin-right:auto">
<?php echo $out?>
</div>
</body>
</html>

Abu Ghufran answered 8 years ago

Hi,

Your code looks fine.

Please make sure you are including full version library:
include(PHPGRID_LIBPATH."inc/jqgrid_dist.php");
It should be unobfuscated/unencrypted file.

After that, you should see bulk edit options like following:
http://prntscr.com/clemhb

Your Answer

11 + 0 =

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?