我正在尝试在jQGrid的编辑表单上填充MySQL数据库中的选择下拉列表。到目前为止,这是我的代码:
$col = array();
$col["title"] = "Unpacked By";
$col["name"] = "operators_name";
$col["width"] = "30";
$col["editable"] = true; // this column is editable
$col["align"] = "center";
$col["edittype"] = "select"; // render as select
$col["editoptions"] = "dataUrl../TextilePrintingManager/Administrator/filename.php";
$col["cacheUrlData"] = TRUE;
$cols[] = $col;