Is CellEditCallback not supported in 2017b?
2 次查看(过去 30 天)
显示 更早的评论
The following lines of code works in R2019b but does not work in R2017b.
Upon running the code, it displays table with {1,2;3,4}.
Changing any values in the table should show the btn data, event data, and display message saying it "Works!".
Does anyone has a solution or workaround for this?
f = uifigure;
t = uitable(f,'Data', {1, 2; 3,4},...
'Position', [20 20 300 300],...
'ColumnEditable', [true true],...
'CellEditCallback',@(btn, event) clbk(btn, event,f));
function clbk(btn, event,f)
disp('Works!');
disp(btn);
disp(event);
disp(f);
end
0 个评论
回答(1 个)
Walter Roberson
2020-11-12
(The property is at least documented as existing for uitable in uifigure in R2017b; https://www.mathworks.com/help/releases/R2017b/matlab/ref/matlab.ui.control.tableappd-properties.html#property_d119e1112562 )
5 个评论
Steven Lord
2020-11-13
If you want to make sure MathWorks staff see and respond to the question, please send it to Technical Support using the Contact Support link on the Support section of the MathWorks website. [No, I cannot answer it because I do not know of any reason why it would not trigger in the earlier release.]
Walter Roberson
2020-11-13
I do not see any public bug report related to this topic.
There is a bug report against R2019a having to do with CellEditCallback, but that has to do with modifying a data value inside the callback.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Maintain or Transition figure-Based Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!