kfmedi Posted April 10, 2025 Posted April 10, 2025 Hello, I use version 1.95.0.1580. I have 2 DB grids on a form with different datasources, there is no connection between the 2 grids. When I edit a cell in the first grid and the second grid is refreshed (by a timer that reopens the second grid's dataset) then the editor disappears. How can I prevent this? Quote
Hayri ASLAN Posted April 10, 2025 Posted April 10, 2025 Hello What version of UniGUI are you using? Please adjust your email address. Quote
Hayri ASLAN Posted April 10, 2025 Posted April 10, 2025 1 hour ago, kfmedi said: Done. 1.95.0.1580 Can you create a simple test case? Quote
Administrators Farshad Mohajeri Posted April 10, 2025 Administrators Posted April 10, 2025 6 hours ago, kfmedi said: Hello, I use version 1.95.0.1580. I have 2 DB grids on a form with different datasources, there is no connection between the 2 grids. When I edit a cell in the first grid and the second grid is refreshed (by a timer that reopens the second grid's dataset) then the editor disappears. How can I prevent this? Hi, You said that a timer re-opens the dataset. Can you specify how this is implemented? Quote
kfmedi Posted April 11, 2025 Author Posted April 11, 2025 Hello, I attached a sample project. uniguiGridEditorTest.zip Quote
Sherzod Posted May 7, 2025 Posted May 7, 2025 On 4/11/2025 at 4:09 PM, kfmedi said: uniguiGridEditorTest.zip 35.5 kB · 0 downloads Hello, Sorry for the late response. Can you create a test case without TVirtualDataSet? Quote
kfmedi Posted August 1, 2025 Author Posted August 1, 2025 Hello, Any information? I tried it with 1.95.0.1604 but it is the same. Quote
Sherzod Posted August 1, 2025 Posted August 1, 2025 55 minutes ago, kfmedi said: Any information? I tried it with 1.95.0.1604 but it is the same. Hello, Do you mean the second grid becomes non-editable? Quote
Sherzod Posted August 1, 2025 Posted August 1, 2025 If so, it seems that the dgEditing option is set to False on your side. Quote
kfmedi Posted August 14, 2025 Author Posted August 14, 2025 On 8/1/2025 at 12:20 PM, Sherzod said: Hello, Do you mean the second grid becomes non-editable? Hello, No. I mean the editor in the first grid disappears when another grid is refreshed. Quote
Sherzod Posted August 14, 2025 Posted August 14, 2025 Hello, Could you please record a short video showing the problem? Quote
kfmedi Posted September 24, 2025 Author Posted September 24, 2025 On 8/14/2025 at 8:15 AM, Sherzod said: Hello, Could you please record a short video showing the problem? Hello, Yes. unigui grid editor.mp4 Quote
Sherzod Posted October 6, 2025 Posted October 6, 2025 On 8/14/2025 at 11:00 AM, kfmedi said: No. I mean the editor in the first grid disappears when another grid is refreshed. Hello, Do both grids use the same dataset? If yes, that’s actually a normal case. Quote
kfmedi Posted October 8, 2025 Author Posted October 8, 2025 On 10/6/2025 at 6:25 AM, Sherzod said: Hello, Do both grids use the same dataset? If yes, that’s actually a normal case. Hello, No. Please check the attached test project (a few posts up). Quote
Sherzod Posted February 12 Posted February 12 Hello, 16 hours ago, kfmedi said: Any progress on this? Sorry for the late reply. The core problem is focus loss during editing. When another grid is refreshed by a timer, an Ajax-driven DOM/layout update occurs. This may cause the active editor field to lose focus. ExtJS treats this blur as a normal end of editing and closes the editor. Yes, it is possible to try to find workaround solutions. However, it is important to clearly identify the real root cause of the editor being closed — whether it is a legitimate focus change caused by user interaction, or a focus loss triggered indirectly by a DOM/layout update during an automatic refresh. From an architectural point of view, the correct approach is not to force the editor to stay open, but to avoid triggering UI updates (timers, dataset reloads, store loads) while a cell is being edited. Quote
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.