2

I'm using setCell to set the value of a cell , and after that enabling the cell for editing

grid.jqGrid('setCell','1','Valid','5');
grid.jqGrid('editRow','1', false);

but the result ist i cant click any longer on the cell ?

no longer editeble

after calling serCell the cell cant by any longer editable.

How can i make this cell again editable ?

Thanks

kozla13
  • 1,854
  • 3
  • 23
  • 35
  • 3
    The problem is that `setCell` does not work properly when the cell is in edit mode. See this question for a solution: http://stackoverflow.com/questions/5247138/jqgrid-change-cell-value-and-stay-in-edit-mode – Justin Ethier Apr 25 '13 at 13:54

1 Answers1

1

from the comment i find the solution

instead to set the column value like this

grid.jqGrid('setCell','1','Valid','5');

you need to set it like this :
$('#1_Valid').val('5');

kozla13
  • 1,854
  • 3
  • 23
  • 35