robinhodemorais 21 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 post Share on other sites
Sherzod 1183 Posted July 28, 2020 Share Posted July 28, 2020 Hello, Which build are you using? How can we reproduce this issue? Quote Link to post Share on other sites
robinhodemorais 21 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 post Share on other sites
LogSistemas01 0 Posted July 29, 2020 Share Posted July 29, 2020 readonly = true works in build 1.90.0.1514 Quote Link to post Share on other sites
robinhodemorais 21 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 post Share on other sites
robinhodemorais 21 Posted July 29, 2020 Author Share Posted July 29, 2020 Any solution ? Quote Link to post Share on other sites
Sherzod 1183 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 post Share on other sites
Sherzod 1183 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 post Share on other sites
robinhodemorais 21 Posted July 30, 2020 Author Share Posted July 30, 2020 Thanks, that worked. Quote Link to post Share on other sites
Daha Software 3 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 post Share on other sites
molla2005b 15 Posted January 11 Share Posted January 11 This problem will be solved in the next update? workaround not work for me my version : 1.90.0.1543 Quote Link to post Share on other sites
Sherzod 1183 Posted January 11 Share Posted January 11 2 hours ago, molla2005b said: workaround not work for me Hello, I will check. Quote Link to post Share on other sites
Sherzod 1183 Posted January 11 Share Posted January 11 2 hours ago, molla2005b said: workaround not work for me Do you have locked columns? 1 Quote Link to post Share on other sites
molla2005b 15 Posted January 11 Share Posted January 11 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 post Share on other sites
molla2005b 15 Posted January 13 Share Posted January 13 did I paste the workaround in right place? it's not work Quote Link to post Share on other sites
Sherzod 1183 Posted January 13 Share Posted January 13 4 minutes ago, molla2005b said: it's not work Hello, Sorry, I will check. Quote Link to post Share on other sites
Sherzod 1183 Posted January 13 Share Posted January 13 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 post Share on other sites
molla2005b 15 Posted January 13 Share Posted January 13 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 post Share on other sites
molla2005b 15 Posted January 13 Share Posted January 13 when column has GroupHeader not work show this error in console JS Error: col.getEditor is not a function Quote Link to post Share on other sites
Sherzod 1183 Posted January 13 Share Posted January 13 I need to check. Quote Link to post Share on other sites
Marlon Nardi 128 Posted January 13 Share Posted January 13 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 post Share on other sites
Sherzod 1183 Posted January 14 Share Posted January 14 4 hours ago, Marlon Nardi said: another situation in 1.90.0.1542 Hello, How can we reproduce this issue!? Quote Link to post Share on other sites
Marlon Nardi 128 Posted January 14 Share Posted January 14 11 hours ago, Sherzod said: Hello, How can we reproduce this issue!? open row edit -> close -> open row edit Quote Link to post Share on other sites
molla2005b 15 Posted March 10 Share Posted March 10 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 post Share on other sites
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.