Juan Francisco Posted March 15, 2022 Share Posted March 15, 2022 Hi, good evening, I'm working with the TUniDbGrid, I'm trying to put the focus on a specific cell, but at the moment I haven't found a clear solution, maybe you can help me. In the following image I show the functionality that you want to get to do, for example when selecting the button positions the focus in the Area 3 column with the value 033, in another case that when selecting the button it will be positioned in the Area 1 column with the value 011, only in the row that is active, could this be done? https://drive.google.com/file/d/1HF8wAGK0P3asENJeE72oBsqZLBugNXZK/view?usp=sharing Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15, 2022 Share Posted March 15, 2022 Hello, Can you please specify first, which edition and build of UniGUI are you using? 1 Quote Link to comment Share on other sites More sharing options...
Juan Francisco Posted March 15, 2022 Author Share Posted March 15, 2022 14 hours ago, Sherzod said: Hola, ¿Puede especificar primero qué edición y compilación de UniGUI está usando? Edición: Delphi 10.3.3 uniGUI Web Application Framework - Trial Edition 1.90.0 build 1547 evaluation Edition Compilación: 32 Bits. https://drive.google.com/file/d/1Bgn3EpwKmK_Q8TYP3hF-eb6sGgtnbcgg/view?usp=sharing https://drive.google.com/file/d/1j_3aBifJb9zNX5lBlxSkaftREbyTptPA/view?usp=sharing Quote Link to comment Share on other sites More sharing options...
Juan Francisco Posted March 16, 2022 Author Share Posted March 16, 2022 20 hours ago, Sherzod said: Hello, Can you please specify first, which edition and build of UniGUI are you using? It can be done in unigi!! I hope that the information I send will help you to support me a little. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 16, 2022 Share Posted March 16, 2022 We will try to see your case. Quote Link to comment Share on other sites More sharing options...
Juan Francisco Posted April 5, 2022 Author Share Posted April 5, 2022 On 15/3/2022 at 21:39, Sherzod said: Intentaremos ver tu caso. Gracias Quote Link to comment Share on other sites More sharing options...
Juan Francisco Posted September 23, 2022 Author Share Posted September 23, 2022 Ya esta solucionado: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniDBGrid1 do begin CurrCol:= 3; CurrRow:= 1; JSInterface.JSCode('Ext.select("#'+ JSId +' .x-grid-cell-selected").elements[0].scrollIntoView();'); end; end; Quote Link to comment Share on other sites More sharing options...
boka Posted January 19, 2023 Share Posted January 19, 2023 On 9/23/2022 at 9:44 PM, Juan Francisco said: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniDBGrid1 do begin CurrCol:= 3; CurrRow:= 1; JSInterface.JSCode('Ext.select("#'+ JSId +' .x-grid-cell-selected").elements[0].scrollIntoView();'); end; end; I get grayed DBGrid after this code Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2023 Share Posted January 19, 2023 1 hour ago, boka said: I get grayed DBGrid after this code And? Quote Link to comment Share on other sites More sharing options...
boka Posted February 3, 2023 Share Posted February 3, 2023 = disabled state Quote Link to comment Share on other sites More sharing options...
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.