次のように私の JsonResult
[{"name":"Group 1"},{"name":"Group 2"},{"name":"Group 3"}]
forループを書いているときに少し混乱しているので、これを繰り返すか、jqGridのeditoptionsでbuildSelect関数内の名前の値を取得するにはどうすればよいですか? 次のようにjqGridの私のcolModelコード
{ name: 'GroupName', index: 'GroupName', width: 60, align: 'center', search: false, editable: true, edittype: 'select',
editoptions: {
dataUrl: "/Category/GetCategoryGroup",
buildSelect: function (response) {
if (response && response.length) {
// for loop iteration to get name values
}
}
}
},