JQGrid,填充MySQL db的选择下拉列表

时间:2015-04-20 17:14:33

标签: java mysql jqgrid

我正在尝试在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;

0 个答案:

没有答案