Skip to main content



      Home
Home » Eclipse Projects » NatTable » How to programmatically select a cell in the row header?
How to programmatically select a cell in the row header? [message #1860837] Tue, 05 September 2023 11:49 Go to next message
Eclipse UserFriend
Hey there,

We want to be able to select the row header and then make it editable after a user adds a new row. This allows us to direct them to adding a description for the element they just created.

However I've been having trouble getting it to select the row header cell, when using the SelectCellCommand it just ends up selecting the leftmost column in the body.

The body layer has a selection layer (which is what I was using) but I tried getting the selection layer from the row header layer and that does the same thing (which could be an issue on our side).

TLDR: What is the proper approach to doing this?

Cheers
Jonathan
Re: How to programmatically select a cell in the row header? [message #1860849 is a reply to message #1860837] Wed, 06 September 2023 02:05 Go to previous messageGo to next message
Eclipse UserFriend
Typically you only have a SelectionLayer in the body region. Therefore you can not select a cell in the header regions, as they actually don't support this. As you only want to activate the editor for a row header cell, which should be possible even without a SelectionLayer, you need to find the correct edit command.
Re: How to programmatically select a cell in the row header? [message #1860868 is a reply to message #1860849] Wed, 06 September 2023 16:30 Go to previous message
Eclipse UserFriend
Ah I see what you mean, got it working with EditCellCommand. Thanks for the help :)
Previous Topic:NatTable 2.2.0 released
Next Topic:Default corner style/painter
Goto Forum:
  


Current Time: Wed May 21 08:16:53 EDT 2025

Powered by FUDForum. Page generated in 0.04210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top