jsgrid
jsgrid copied to clipboard
how to know is grid editing (without callbacks)
I am updating a grid periodically by setTimeout (by entire rerender). But I don't want to, if user is editing fields. How to get current grid/cell state in such a moment?
I don't want to plug callbacks, because of global variables, multipurpose of same grid, and general mess in code. Is there another "method" to reach cell state?
thanks
this is implementation detail so it might change without notice in later versions you should use documented APIs ,but here you go: if $(temp1).data('JSGrid')._editingRow is not null then we are currently editing that row.