Hi,
Can i add drop-down manually, without using db?(To load values manually,search based drop-down column,Update column in drop-down)
Pasting from docs:
Render as select (dropdown), with these values "key:value;key:value;key:value"
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'10:$10;20:$20;30:$30;40:$40;50:$50');
// For multiselect, you probably need to write custom on_update handler
$col["editoptions"] = array("value"=>'10:$10;20:$20;30:$30;40:$40;50:$50', "multiple" => true);
Hello,
In your JS code, you can call …
var rowid = jQuery("#list1").jqGrid('getGridParam','selrow'); // returns rowid or null if no row is selected (single row)
Return array of id's of the selected rows when multiselect options is true. Empty array if not selection
var selr = jQuery('#list1').jqGrid('getGridParam','selarrrow');
where list1 is grid id.