4
votes

I've noticed that when a validation error occurs, the user is locked into that cell until the error is resolved. Is there a way to allow the user to continue to navigate cells?

This approach works for me b/c I don't commit when they leave the cell, but wait until they click a Save button. So, this button would be disabled while an error exists, but they are still free to navigate cells. Thank you.

1
did you ever found out how to accomplish this?Ricardo Sanchez

1 Answers

0
votes

You need to implement your own editorLock function, that is passed to options. This feature, just as most of SlickGrid, is poorly documented, ut you can watch through source code of SlickGrid, and search for function called commitCurrentEdit.

The example of editorLock is in the file slick.core.js

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

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