How to allow cell navigation in SlickGrid with validation error?

I noticed that when a validation error occurs, the user is blocked in this cell until the error is resolved. Is there a way to allow the user to continue to move around the cells?

This approach works for me b / c. I don’t commit when they leave the cell, but wait until they click the Save button. This way, this button will be disabled while there is an error, but they can still move around the cells. Thanks.

+4
source share
1 answer

You need to implement your own editorLock function, which is passed to the parameters. This function, like most SlickGrid, is poorly documented, you can look through the SlickGrid source code and look for a function called commitCurrentEdit .

An example editorLock is located in slick.core.js

Also, before rendering the grid, you can try to do this:

 Slick.GlobalEditorLock.commitCurrentEdit = function(){ return true; } 
0
source

All Articles