フィルターのクリア

Uitable editable cells not updating at first key value

2 ビュー (過去 30 日間)
Allen
Allen 2021 年 3 月 23 日
回答済み: Rashed Mohammed 2021 年 3 月 26 日
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.

回答 (1 件)

Rashed Mohammed
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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by