worapop Posted December 20, 2019 Share Posted December 20, 2019 I want to set distance between button 'Comfirm'/'Cancel' and Grid. In picture, Distance is too far. thank you. Link to comment Share on other sites More sharing options...
Sherzod Posted December 20, 2019 Share Posted December 20, 2019 13 minutes ago, worapop said: I want to set distance between button 'Comfirm'/'Cancel' and Grid. Can you please specify which edition and build of UniGUI are you using? Link to comment Share on other sites More sharing options...
worapop Posted December 20, 2019 Author Share Posted December 20, 2019 17 minutes ago, Sherzod said: Can you please specify which edition and build of UniGUI are you using? I use UniGui version:1.90.0 build 1514. Complie in Delphi 10.3 Link to comment Share on other sites More sharing options...
Sherzod Posted December 20, 2019 Share Posted December 20, 2019 3 minutes ago, worapop said: I use UniGui version:1.90.0 build 1514. Complie in Delphi 10.3 First of all, please adjust your forum email address: Link to comment Share on other sites More sharing options...
fraxzi Posted February 3, 2020 Share Posted February 3, 2020 Hi Sherzod, How to position roweditor's "confirm/cancel" buttons just below the focus/editing cell of dbgrid? Roweditor is so handy that I dont need another form/panel to edit fields.. I like this feature Thanks, Frances Link to comment Share on other sites More sharing options...
Sherzod Posted February 3, 2020 Share Posted February 3, 2020 2 hours ago, fraxzi said: How to position roweditor's "confirm/cancel" buttons just below the focus/editing cell of dbgrid? Hi, Need to analyze. Link to comment Share on other sites More sharing options...
Sherzod Posted February 3, 2020 Share Posted February 3, 2020 2 hours ago, fraxzi said: How to position roweditor's "confirm/cancel" buttons just below the focus/editing cell of dbgrid? Maybe you want this for starters: function afterrender(sender, eOpts) { var me=sender; if (me.editingPlugin.isRowEditor) { me.editingPlugin.editorCfg.cls = "_roweditor"; me.addCls('_roweditor'); me.editingPlugin.editorCfg.listeners = { show: function() { var ed=this.activeField; me.getEl().select('.x-grid-row-editor-buttons').setX(ed.getX()); } }; }; } Link to comment Share on other sites More sharing options...
fraxzi Posted February 4, 2020 Share Posted February 4, 2020 14 hours ago, Sherzod said: Maybe you want this for starters: function afterrender(sender, eOpts) { var me=sender; if (me.editingPlugin.isRowEditor) { me.editingPlugin.editorCfg.cls = "_roweditor"; me.addCls('_roweditor'); me.editingPlugin.editorCfg.listeners = { show: function() { var ed=this.activeField; me.getEl().select('.x-grid-row-editor-buttons').setX(ed.getX()); } }; }; } Hi Sherzod, it works! I noticed that when you change cell (position) and click on dbnavigator's edit button, the roweditor buttons still position from previous selected cell. Thanks, Frances Link to comment Share on other sites More sharing options...
Sherzod Posted February 4, 2020 Share Posted February 4, 2020 Hi, 2 hours ago, fraxzi said: I noticed that when you change cell (position) and click on dbnavigator's edit button, the roweditor buttons still position from previous selected cell. Yes, I know. And therefore noted that: 16 hours ago, Sherzod said: ...for starters Link to comment Share on other sites More sharing options...
fraxzi Posted February 4, 2020 Share Posted February 4, 2020 Hi Sherzod, With the buttons re-positioning, it causes random "not-closing" behavior on roweditor. You might want to check it. Thanks, Frances Link to comment Share on other sites More sharing options...
Sherzod Posted February 4, 2020 Share Posted February 4, 2020 12 minutes ago, fraxzi said: With the buttons re-positioning, it causes random "not-closing" behavior on roweditor. You might want to check it. Hi Frances, How can I reproduce this behavior? Link to comment Share on other sites More sharing options...
fraxzi Posted February 4, 2020 Share Posted February 4, 2020 Hi Sherzod, I did it with the same sample "Gridgrouping - Dynamic", just double click on dbgrid and click on roweditor cancel or confirm buttons (either, or randomly).. It wont close, but if dbnavigator's refresh button clicked, id does close. Thanks, Frances Link to comment Share on other sites More sharing options...
Sherzod Posted February 4, 2020 Share Posted February 4, 2020 8 minutes ago, fraxzi said: I did it with the same sample "Gridgrouping - Dynamic", just double click on dbgrid and click on roweditor cancel or confirm buttons (either, or randomly).. It wont close, but if dbnavigator's refresh button clicked, id does close. Hmm, I couldn't reproduce this behavior... Link to comment Share on other sites More sharing options...
fraxzi Posted February 4, 2020 Share Posted February 4, 2020 Hi Sherzod, I re-build the whole project.. right now the "unable to close" roweditor not manifesting. Please see the behavior (attached gif) Thanks, Frances Link to comment Share on other sites More sharing options...
Sherzod Posted February 4, 2020 Share Posted February 4, 2020 8 minutes ago, fraxzi said: I re-build the whole project.. right now the "unable to close" roweditor not manifesting. Please see the behavior (attached gif) Is everything normal at the moment? Link to comment Share on other sites More sharing options...
fraxzi Posted February 4, 2020 Share Posted February 4, 2020 7 minutes ago, Sherzod said: Is everything normal at the moment? Hi Sherzod, I think I consider it normal at the moment... I will observe further on capture the screen if it manifest again (in random). Thanks! I feel so welcome in this community (i'm newbie so please bare with me). This is my first Delphi+UniGUI project Kind regards, Frances Link to comment Share on other sites More sharing options...
Sherzod Posted February 4, 2020 Share Posted February 4, 2020 Hi Frances, Once again, welcome! If you have questions, ask. We will try to help you. Best regards, Link to comment Share on other sites More sharing options...
fraxzi Posted February 7, 2020 Share Posted February 7, 2020 Hi Sherzod, It so odd, that only "uni_lavender" theme crashes the roweditor.. with other themes I tested it works fine.. Just changing theme. Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2020 Share Posted February 7, 2020 20 minutes ago, fraxzi said: It so odd, that only "uni_lavender" theme crashes the roweditor.. with other themes I tested it works fine.. Hi, Just changed the theme and it stops working? Link to comment Share on other sites More sharing options...
fraxzi Posted February 7, 2020 Share Posted February 7, 2020 Just now, Sherzod said: Hi, Just changed the theme and it stops working? Hi Sherzod, Yes. No code changes.. just selected the theme. Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2020 Share Posted February 7, 2020 21 minutes ago, fraxzi said: Yes. No code changes.. just selected the theme. It seems I found where the error occurs, I analyze. Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2020 Share Posted February 7, 2020 1 hour ago, fraxzi said: Yes. No code changes.. just selected the theme. 1. function afterrender(sender, eOpts) { var me=sender; if (me.editingPlugin.isRowEditor) { me.editingPlugin.editorCfg.cls = "_roweditor"; me.addCls('_roweditor'); me.editingPlugin.editorCfg.listeners = { show: function() { if (me.activeTD) { me.getEl().select('.x-grid-row-editor-buttons').setX(Ext.get(me.activeTD).getX()); } } }; }; } 2. function cellclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { this.activeTD=td; } Link to comment Share on other sites More sharing options...
fraxzi Posted February 8, 2020 Share Posted February 8, 2020 Hi Sherzod, Good Morning from this part of the world First thing in the office.. Confirmed on the code above for the correct behavior. Thanks! we couldn't do it without you and support team. Kind regards, Frances Link to comment Share on other sites More sharing options...
Sherzod Posted February 8, 2020 Share Posted February 8, 2020 Hi Frances, Thank you, have a nice day and programming! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now