Sherzod Posted October 23, 2023 Share Posted October 23, 2023 21 minutes ago, SISBLU Software said: And the problem still persists. Hello, But the field is not editable, is it? Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted October 23, 2023 Share Posted October 23, 2023 IN my case, there are 2 editable fields in the grid. But the other fields that are marked with Readonly=true, when I click to edit my 2 fields, it opens the entire line for editing... The correct thing would be to leave the fields that are marked as Readonly=true disabled Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 23, 2023 Share Posted October 23, 2023 Just now, SISBLU Software said: The correct thing would be to leave the fields that are marked as Readonly=true disabled Not quite like that. Actually readonly, disabled are different properties. And in this case it works correctly. Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted October 23, 2023 Share Posted October 23, 2023 Correct: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col){ if (col.getEditor() && col.rdonly) { col.getEditor().setDisabled(col.rdonly); } }) } Image: Without the code, the columns are active: The 2 COLUMNS are marked as Readonly=true Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.