Uitable editable cells not updating at first key value
2 次查看(过去 30 天)
显示 更早的评论
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.
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.
0 个评论
回答(1 个)
Rashed Mohammed
2021-3-26
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!