Hi. I have a problem withmy php grid.
is not working bulk edicion , and when I make excel exports is not working.
thank u
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.
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.
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.
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">
<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" rel="stylesheet" />
<script src="http://wenzhixin.net.cn/p/multiple-select/jquery.multiple.select.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" 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" 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>
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