Frederick Posted July 18, 2019 Share Posted July 18, 2019 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) Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted July 18, 2019 Share Posted July 18, 2019 Hi, Please create a test case to work on it Link to comment Share on other sites More sharing options...
Frederick Posted July 18, 2019 Author Share Posted July 18, 2019 Please find attached. SModal.7z Link to comment Share on other sites More sharing options...
Sherzod Posted July 19, 2019 Share Posted July 19, 2019 I opened a ticket in support portal. Link to comment Share on other sites More sharing options...
Frederick Posted July 19, 2019 Author Share Posted July 19, 2019 Ok, thanks. Link to comment Share on other sites More sharing options...
Frederick Posted August 12, 2019 Author Share Posted August 12, 2019 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 More sharing options...
Sherzod Posted August 12, 2019 Share Posted August 12, 2019 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 More sharing options...
Frederick Posted August 12, 2019 Author Share Posted August 12, 2019 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now