Andrus
Andrus

Reputation: 27955

How to use single click line editing in latest jqgrid

Single click inline row editing started from beforeSelectRow is not working in latest free jqgrid from github master.

Clicking in row to start inline edit causes now exception

Uncaught TypeError: Cannot read property 'rows' of undefined Line 16181 Column 45TypeError: Cannot read property 'rows' of undefined    at showHideEditDelete

Open this page in chrome and press Kohe button so that it is in pressed state. After that click in some line to start inline editing. This exception occurs.

How to use single click inline row editing in latest free jqgrid ?

Upvotes: 0

Views: 375

Answers (1)

Oleg
Oleg

Reputation: 221997

The reason of the problem: you called setFrozenColumns twice. The second call some destroys internal structures. If I skip in the debugger the second call of setFrozenColumns then inline editing starts to work.

I posted just now the changes which will ignore the second call of setFrozenColumns. Nevertheless I strictly recommend you to remove the second call of setFrozenColumns from your code.

Upvotes: 1

Related Questions