Greetings Jeroen
In GridLayout I agree and we already use the "tabIndex" and it works correctly. Thank you for the explanation.
Our problem really is to put the focus on a widget (example TextField) inside the DataGrid.
What we did and are ready to do so is to list sequentially the "tabIndex" of all rows / columns, and we still set a "setAttribute" with this sequential number.
Now, how to place the cursor (focus) on one of these columns is still a mystery.
I await new iterations ...
Hugs
------------------------------
Osvaldo Jose de Oliveira Menezes
Analista
RellegusTI
Orlândia
+55 16 3818-0203
------------------------------
Original Message:
Sent: Fri January 22, 2021 02:41 AM
From: Jeroen Dielemans
Subject: How to position the cursor inside a column in a DataGrid
Hello,
Do you really mean you have the widgets inside a DataGrid or maybe inside a GridLayout?
In a GridLayout you can use the textField1.focus() to focus on that field, and textField1.select() to select the already entered text.
Sometimes this focus option is not working always. That can be fixed by adding a tabIndex=1
Example:
ui Div {
children =[uiBox, buttonBar],
tabIndex = 1,
width = "1000px" };
Inside a DataGrid you can also add widgets when you are using behavior. Placing the focus on such a field is more complicated.
Greetings, Jeroen
------------------------------
Jeroen Dielemans
DMG
Waalwijk
Original Message:
Sent: Thu January 21, 2021 12:51 PM
From: Osvaldo Jose de Oliveira Menezes
Subject: How to position the cursor inside a column in a DataGrid
Masters ..
Another challenge ..
I have a dataGrid with 3 textfield columns and several rows where I enter values. However, when an error occurs, I would like to focus on the field where the error occurred.
Any solution ?
Hugs and thanks for your attention
------------------------------
Osvaldo Jose de Oliveira Menezes
Analista
RellegusTI
Orlândia
+55 16 3818-0203
------------------------------