Uitable editable cells not updating at first key value
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/559968/Cell%20Selected.jpeg)
Target cell in edit mode after first key press.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/559973/image.jpeg)
Target cell value updated, but without the first digit. Displays 23.456 instead of 123.456.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/559978/image.jpeg)
The intended result.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/559983/image.jpeg)
0 comentarios
Respuestas (1)
Rashed Mohammed
el 26 de Mzo. de 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
0 comentarios
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!