pro_imaj Posted October 5, 2022 Share Posted October 5, 2022 Hello, The problem is when you examine the attached example. When the program first opens, you can double-click on the gray and change something. But if you press the ReadyOnly = True button from the buttons below and then press the ReadyOnly = False button again, when you want to edit the Grid, RowEditor opens, but you cannot edit. How do I solve this? GridEditors - Row Editor.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2022 Share Posted October 6, 2022 Hello, I will try to check your testcase. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2022 Share Posted October 6, 2022 9 hours ago, pro_imaj said: GridEditors - Row Editor.zip 98.13 kB · 1 download I see the issue, I will try to analyze. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2022 Share Posted October 6, 2022 12 hours ago, pro_imaj said: How do I solve this? Can you try this workaround? function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { sender.getColumnManager().getColumns().forEach(function(col, i) { var field = sender.editingPlugin.getEditor().getForm().getFields().items.find(x => x.column.dataIndex === col.dataIndex); if (field) { field.readOnly = col.rdonly; if (field.readOnly === false) { try { field.inputEl.dom.removeAttribute('readonly') } catch (err) {} } else { try { field.inputEl.dom.setAttribute('readonly', 'readonly') } catch (err) {} } } }); } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2022 Share Posted October 6, 2022 * sender.getColumnManager().getColumns() can be replaced with columns Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 6, 2022 Author Share Posted October 6, 2022 7 hours ago, Sherzod said: Can you try this workaround? function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { sender.getColumnManager().getColumns().forEach(function(col, i) { var field = sender.editingPlugin.getEditor().getForm().getFields().items.find(x => x.column.dataIndex === col.dataIndex); if (field) { field.readOnly = col.rdonly; if (field.readOnly === false) { try { field.inputEl.dom.removeAttribute('readonly') } catch (err) {} } else { try { field.inputEl.dom.setAttribute('readonly', 'readonly') } catch (err) {} } } }); } What event should I write about? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 7, 2022 Share Posted October 7, 2022 6 hours ago, pro_imaj said: What event should I write about? UniDBGrid.ClientEvents.ExtEvents -> function reconfigure Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 7, 2022 Author Share Posted October 7, 2022 6 hours ago, Sherzod said: UniDBGrid.ClientEvents.ExtEvents -> function reconfigure @Sherzod It allows editing in this way, but the editor of the relevant colon is gone. In other words, if the date field is not the datetimepictur editor, it only comes in the form of text data entry. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 7, 2022 Share Posted October 7, 2022 1 hour ago, pro_imaj said: but the editor of the relevant colon is gone. In other words, if the date field is not the datetimepictur editor, it only comes in the form of text data entry. Can you please explain in more detail, sorry? Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 7, 2022 Author Share Posted October 7, 2022 10 minutes ago, Sherzod said: Can you please explain in more detail, sorry? @Sherzod Hello, After doing the process, I am sending an example of no editor working in the Hidden panel. The date field, for example, does not act like a date, like a text input. GridEditors - Row Editor.zip Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 7, 2022 Author Share Posted October 7, 2022 1 minute ago, pro_imaj said: @Sherzod Hello, After doing the process, I am sending an example of no editor working in the Hidden panel. The date field, for example, does not act like a date, like a text input. GridEditors - Row Editor.zip 187.52 kB · 0 downloads 20221007_120743.mp4 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.