onBeforeEditStart fires during actual edit

Hello, I have simple datatable and in data i have hidden column 'readonly' which i check like:

                      onBeforeEditStart: function(id) {
                        if(this.getItem(id).readonly == 1) { return false; };

Pretty simple and it works fine when readonly==1 and no editor called. But if i actually edit value in cell then onBeforeEditStart fires on any change of cell value during edit with id = "" and generates "Cannot read property 'readonly' of undefined" error.
Where did I turned wrong way? Any suggestions how to allow editing for some rows and disallow for some others?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion