robinhodemorais Posted July 28, 2020 Share Posted July 28, 2020 How can I enable only the field that has the editor enabled? It is enabling all other fields in the edition and allowing to change the same defined fields or readonly = true in each field of the grid And why does the image appear in her html, as shown in the image? 1 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 28, 2020 Share Posted July 28, 2020 Hello, Which build are you using? How can we reproduce this issue? Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted July 28, 2020 Author Share Posted July 28, 2020 build 1.90.0.1534 An example is attached when you click on the discount it shows the edit line DBGrid.rar Quote Link to comment Share on other sites More sharing options...
LogSistemas01 Posted July 29, 2020 Share Posted July 29, 2020 readonly = true works in build 1.90.0.1514 Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted July 29, 2020 Author Share Posted July 29, 2020 1 hour ago, LogSistemas01 said: readonly = true works in build 1.90.0.1514 So it's a bug in build 1.90.0.1534 Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted July 29, 2020 Author Share Posted July 29, 2020 Any solution ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 30, 2020 Share Posted July 30, 2020 5 hours ago, robinhodemorais said: Any solution ? Hello, Sorry for the late response. We will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 30, 2020 Share Posted July 30, 2020 5 hours ago, robinhodemorais said: Any solution ? Try this workaround for now: function afterrender(sender, eOpts) { var me=sender; if (me.editingPlugin.isRowEditor) { me.editingPlugin.editorCfg.listeners = { show: function(a) { a.items.each(function(f) { f.setEditable(!f.column.rdonly) }) } }; }; } Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted July 30, 2020 Author Share Posted July 30, 2020 Thanks, that worked. Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted November 17, 2020 Share Posted November 17, 2020 Perfect... On 7/30/2020 at 1:46 AM, Sherzod said: Try this workaround for now: function afterrender(sender, eOpts) { var me=sender; if (me.editingPlugin.isRowEditor) { me.editingPlugin.editorCfg.listeners = { show: function(a) { a.items.each(function(f) { f.setEditable(!f.column.rdonly) }) } }; }; } Perfect. This problem will be solved in the next update? Quote Link to comment Share on other sites More sharing options...
molla2005b Posted January 11, 2021 Share Posted January 11, 2021 This problem will be solved in the next update? workaround not work for me my version : 1.90.0.1543 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2021 Share Posted January 11, 2021 2 hours ago, molla2005b said: workaround not work for me Hello, I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2021 Share Posted January 11, 2021 2 hours ago, molla2005b said: workaround not work for me Do you have locked columns? 1 Quote Link to comment Share on other sites More sharing options...
molla2005b Posted January 11, 2021 Share Posted January 11, 2021 15 hours ago, Sherzod said: Do you have locked columns? no, I have summary only did I paste the workaround in right place? Quote Link to comment Share on other sites More sharing options...
molla2005b Posted January 13, 2021 Share Posted January 13, 2021 did I paste the workaround in right place? it's not work Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2021 Share Posted January 13, 2021 4 minutes ago, molla2005b said: it's not work Hello, Sorry, I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2021 Share Posted January 13, 2021 6 hours ago, molla2005b said: it's not work Hello, Can you try to use this approach? function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col){ if (col.getEditor() && col.rdonly) { col.getEditor().setDisabled(col.rdonly); } }) } 2 Quote Link to comment Share on other sites More sharing options...
molla2005b Posted January 13, 2021 Share Posted January 13, 2021 1 hour ago, Sherzod said: Hello, Can you try to use this approach? function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col){ if (col.getEditor() && col.rdonly) { col.getEditor().setDisabled(col.rdonly); } }) } Thanks, that worked. 1 Quote Link to comment Share on other sites More sharing options...
molla2005b Posted January 13, 2021 Share Posted January 13, 2021 when column has GroupHeader not work show this error in console JS Error: col.getEditor is not a function Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2021 Share Posted January 13, 2021 I need to check. Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted January 13, 2021 Share Posted January 13, 2021 4 hours ago, Sherzod said: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col){ if (col.getEditor() && col.rdonly) { col.getEditor().setDisabled(col.rdonly); } }) } Its works, thanks! another situation in 1.90.0.1542 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 14, 2021 Share Posted January 14, 2021 4 hours ago, Marlon Nardi said: another situation in 1.90.0.1542 Hello, How can we reproduce this issue!? Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted January 14, 2021 Share Posted January 14, 2021 11 hours ago, Sherzod said: Hello, How can we reproduce this issue!? open row edit -> close -> open row edit Quote Link to comment Share on other sites More sharing options...
molla2005b Posted March 10, 2021 Share Posted March 10, 2021 On 1/13/2021 at 11:38 PM, molla2005b said: when column has GroupHeader not work show this error in console JS Error: col.getEditor is not a function hello, is this bug fixed? Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted October 23, 2023 Share Posted October 23, 2023 hello Hi, I downloaded the new version, 1.90.0.1573... And the problem still persists. I'm using this function in the GRIDS I need: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col){ if (col.getEditor() && col.rdonly) { col.getEditor().setDisabled(col.rdonly); } }) } But this should be fixed in the component 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.