Jump to content

Row Cursor In Grid Does Not Move If Record Moved From Second Form


Frederick

Recommended Posts

I have a TUniDBGrid that displays five records. The record is first positioned at ID 1. When I click a second form and press the Next button twice in a TUniDBNavigator to position to ID 3, the grid reflects the new position.

However, the indicator at the original ID 1 remains. If you press the down arrow key while in the grid to attempt to position the record to ID 4, the record indicator goes to ID 2 instead.

How can this problem be resolved?

P.S.   It doesn't matter which database I use. The same problem occurs in SQLite and PostgreSQL.

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1505)
 

Row Cursor In Grid Does Not Move.gif

Link to comment
Share on other sites

  • 4 weeks later...
On 7/19/2019 at 2:09 PM, Sherzod said:

I opened a ticket in support portal.

I see that version 1.90.0.1508 still does not solve this problem.

Do you have a workaround I can use while you work on a permanent solution?

BTW, how does one view submitted tickets and their statuses in the support portal?

Link to comment
Share on other sites

36 minutes ago, Frederick said:

Do you have a workaround I can use while you work on a permanent solution?

Hi,

Can you try this workaround?

procedure TMainForm.CloseMyForm2(Sender : TComponent; AResult : Integer);
begin
   // UniEdit1.Setfocus;
   //grdGrid.JSInterface.JSCallDefer('focus', [False], 100);
   
   with grdGrid do
   begin
     JSInterface.JSCall('getNavigationModel().setPosition', [CurrRow, CurrCol]);
   end;
end;

 

Link to comment
Share on other sites

1 hour ago, Sherzod said:

Hi,

Can you try this workaround?


procedure TMainForm.CloseMyForm2(Sender : TComponent; AResult : Integer);
begin
   // UniEdit1.Setfocus;
   //grdGrid.JSInterface.JSCallDefer('focus', [False], 100);
   
   with grdGrid do
   begin
     JSInterface.JSCall('getNavigationModel().setPosition', [CurrRow, CurrCol]);
   end;
end;

 

Thank you. This code solves the issue.

Link to comment
Share on other sites

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