Open GoogleCodeExporter opened 9 years ago
[deleted comment]
Just to add definition in ajax:
else if(isset($_POST['select'])) {
switch($_POST['col']) {
case "label":
$grid->table = "label";
$grid->where = "label_name IS NOT NULL";
$grid->makeSelect("Lbl_ID","label_name");
echo json_encode($grid->data);
break;
case "format":
$grid->table = "format";
$grid->makeSelect("Fmt_ID","format_name");
echo json_encode($grid->data);
break;
default:
break;
}
}
Original comment by ginger....@gmail.com
on 18 Nov 2011 at 3:59
[deleted comment]
i've figures out the solution:
grid.js
line about 894:
the comparison should be NOT to val but to disp:
$.each(options,function(val,disp) {
//alert(disp);
if($td.text() == disp) {
$select.append("<option selected value='"+val+"'>"+disp+"</option>");
} else {
$select.append("<option value='"+val+"'>"+disp+"</option>");
}
});
Original comment by ginger...@gmail.com
on 22 Nov 2011 at 5:07
Original issue reported on code.google.com by
ginger....@gmail.com
on 18 Nov 2011 at 3:36