jsgrid icon indicating copy to clipboard operation
jsgrid copied to clipboard

how to know is grid editing (without callbacks)

Open djdance opened this issue 5 years ago • 1 comments

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

djdance avatar Apr 06 '20 14:04 djdance

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.

Ex0-Ghost avatar Oct 10 '20 08:10 Ex0-Ghost