I am driving mad with this..
Even after reading the documentation from jqGrid, having using this grid before (with success), now I am not able to edit the cell.
I even commented a big part of the code leaving it with the following lines:
function initGridProjectDetail(options) {
$("#" + options.table).jqGrid({
url: options.dataUrl,
colModel: [
{name: 'CategoryName', label: 'Kategorie', editable: true }
],
jsonReader: { id: 'Id' }
});
}
What can be the reason for not be able to edit this cell? Thanks for the help.
Note: the grid is rendered, has content and even the sorting is working. The only thing missing is the “editable” functionality.
I think that you should just use
jQuery(this)instead ofjQuery("#" + options.table). You can use$(this)orjQuery(this)inside of every callback. You should verify additionally that you defined variablelastsel2.