Hi,
I would like to include a combo box in the inline editing. I am using the following code but when I select a value and I finish the edition, it changes again to the previous value. What am I doing wrong?
Thank you very much in advance.
This is the concrete line:
$grid->setSelect(“CustomerID”, “SELECT DISTINCT CustomerID, CustomerID FROM orders”, true, true, false, array(“”=>”Todas”));
This the complete code:
ini_set(“display_errors”,”1″);
require_once 'jq-config.php';
require_once “php/jqAutocomplete.php”;
require_once “php/jqCalendar.php”;
require_once “php/jqGrid.php”;
require_once “php/jqGridPdo.php”;
$conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD);
$conn->query(“SET NAMES utf8”);
$grid = new jqGridRender($conn);
$grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders';
$grid->dataType = 'json';
$grid->table =”orders”;
$grid->setPrimaryKeyId(“OrderID”);
$grid->setColModel();
$grid->setUrl('myfirstgrid.php');
$grid->cacheCount = true;
$grid->setGridOptions(array(
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top