You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Hugo Ferreira <hf...@gmail.com> on 2021/11/13 13:04:48 UTC
DataGrid tab and select next column
Hi,
I have a Jewel DataGrid with an itemrenderer that supports editing and so
far, so good.
One click and I can edit exactly as I did in the past with Flex.
Now for the next step I want to be able to navigate (and enter edit mode)
to the next right field when I press "tab" key and I want to be able to
navigate down and enter edit mode when I press "enter" key.
What's the way to manage and controls other elements (not data) from the
datagrid or itemrenderer to be able to do this ?
Regards,
Hugo.
Re: DataGrid tab and select next column
Posted by Hugo Ferreira <hf...@gmail.com>.
Problem solved (for now).
One entire day to do this but necessary.
I confess that it's not the best code (many workarounds navigating to
parents, etc ...) but at the end of the day, fulfill the requirements.
The enter key moves to edit mode on the next line but with the same column
position.
The tab key moves to edit mode on the right and if this is the last column,
move to the first column on the next line, giving an infinite tab index.
Hugo Ferreira <hf...@gmail.com> escreveu no dia sábado, 13/11/2021
à(s) 13:04:
> Hi,
>
> I have a Jewel DataGrid with an itemrenderer that supports editing and so
> far, so good.
> One click and I can edit exactly as I did in the past with Flex.
>
> Now for the next step I want to be able to navigate (and enter edit mode)
> to the next right field when I press "tab" key and I want to be able to
> navigate down and enter edit mode when I press "enter" key.
>
> What's the way to manage and controls other elements (not data) from the
> datagrid or itemrenderer to be able to do this ?
>
> Regards,
> Hugo.
>