UITable cell edit not working as expected

7 views (last 30 days)
Michal
Michal on 13 Jan 2021
Answered: Rahul on 16 Apr 2025
I have a question regarding UITable component in AppDesigner in the latest R2020b release. I have this table in GUI and I want the user to edit cells so I set the 'ColumnEditable' property to true. The table cells can be editied, which is great; however, the behavior is strange.
The user clicks any cell he wants to edit and then, when he starts typing, first of all, the cell value is selected and afterwards, the cell is edited. This means that when user wants to write for example "dog", he clicks a cell and writes "dog", only "og" is written because the press of 'd' selected the value in the cell.
In previous release (R2020a), I did not observe this strange behavior. Is this something intended or is this a bug? Can someone please help me or provide me some solution how to change this weird behavior?
Thank you very much
Michal

Answers (1)

Rahul
Rahul on 16 Apr 2025
I encountered this issue as well. The behaviour has been resolved from MATLAB version R2022a and onwards. Alternatively, another workaround involving replicating a second click using 'java.awt.Robot' can also be used.
Please refer to the following MATLAB Answer to resolve this:
Thanks.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!