Jump to content

TUniDBGrid cell editor disappears when another TUniDBGrid is refreshed


Recommended Posts

Posted

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?

  • Administrators
Posted
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?

  • 4 weeks later...
Posted
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?

  • 2 months later...
Posted
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?

  • 2 weeks later...
Posted
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.

  • 1 month later...
  • 2 weeks later...
Posted
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.

Posted
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).

  • 4 months later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...