i wanna use select in jqGrid when i try to edit row.
i set colModel like this:
{name:'scenic',index:'scenic',width:90, editable:true,editoptions:{size:"20",maxlength:"30"}, sortable: true,edittype:"select",editoptions:{dataUrl:"/admins/type"}
and my url return data like this:
[{"key":1,"value":"123"},{"key":2,"value":"456"},{"key":3,"value":"789"},{"key":4,"value":"00"}]
but the problem is, i got error in browser when i renturn data like that, so what kind of data should i return and also i can get the row value when i opening edit window. the error is:
Uncaught Error: Syntax error, unrecognized expression: [{"key":1,"value":"123"},{"key":2,"value":"456"},{"key":3,"value":"789"},{"key":4,"value":"00"}]
any help will be appreciate.........:)
got error
isn't very informative – charlietfl