Uitable editable cells not updating at first key value

2 views (last 30 days)
I have a uitable setup that allows the user to enter values in one of its columns. However, the issue is that MATLAB appears to require the first key entry to set the cell into its value edit mode and does not recognize it as part of the intended value entry. My ultimate goal is get the table to behave a bit more like Excel and to allow the user to enter multiple values with less potential for error if possible. Does anyone know if there is a workaround for this behavior or if it was even MathWorks' goal?
The following images are provided to highlight the issue for tyring to enter the value of 123.456.
Target cell selected, but not in it value edit mode.
Cell Selected
Target cell in edit mode after first key press.
Target cell value updated, but without the first digit. Displays 23.456 instead of 123.456.
The intended result.

Answers (1)

Rashed Mohammed
Rashed Mohammed on 26 Mar 2021
Hi Allen,
Selection and Editing of a cell in a Table are functioning as intended and we currently do not have any plans on modifying the behaviour. However, as a workaround you can use the KeyPressFcn callback to achieve your desired result.
Hope this helps

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!