Here is the JsonResult I received:
[{"name":"Group 1"},{"name":"Group 2"},{"name":"Group 3"}]
I'm a little confused about how to iterate over this data or retrieve the values of the name inside the buildSelect function within the editoptions in jqGrid. Below is the code snippet from my colModel in jqGrid:
{ 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) {
// Use a for loop to access the name values
}
}
}
},