Why does the 'CellEditCallback' not get fired when a uitable has a table variable as its 'Data' on MATLAB R2018a ?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 6월 12일
답변: MathWorks Support Team
2018년 6월 20일
I have the following code that creats 'uitable' and passes in 'tables' as the 'Data' value. The 'CellEditCallback' does not get fired.
f = uifigure;
g = uitabgroup(f,'Position',[20,20,450,350]);
tab1 = uitab(g,'Title','One');
tab2 = uitab(g,'Title','Two');
t1 = table([1;2]);
t2 = table(categorical({'';'';'Seafood';'Nachos'}));
tbl1 = uitable(tab1,'Data',t1,'ColumnEditable',true,'CellEditCallback','disp("Seafood Nachos");');
tbl2 = uitable(tab2,'Data',t1,'ColumnEditable',true,'CellEditCallback','disp("Seafood Nachos");');
tbl1.Data = t2;
Try editing any of the cells of the table. The call back does not get fired.
채택된 답변
MathWorks Support Team
2018년 6월 12일
This is a bug in MATLAB and our developers are aware of this. As a workaround, use cell array data as opposed to table data.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!