need to create a popup drop down list in one of the columns in the tabel in gui which increaes in row size which every event .. an event is a mouse click
Show older comments
here is the code for the creation of the table
uitable(pan, 'Tag', 'PPR_TablePoints', ...
'Units', 'normalized', ...
'Position', [0.05, 0.01, 0.3, 0.98], ...
'CellSelectionCallback', @(src,evnt) PPTableButtonDownCallback(src, evnt, this), ...
'CellEditCallback', @(src,evnt) PPTableEditCallback(src, evnt, this))
here is code for the upodate of the tabel created ....the loop updates the rows with each event which is the click
ncols = 4;
data = cell(nItems, ncols);
for i =1 : nItems
data{i,1} = i;
data{i,2} = pointlist(i, 1);
data{i,3} = pointlist(i, 2);
data{i,4} = xxxxxxxxxxxxxxx
end
i tried with categorical
categorical(data.data{1,4},{option1 ,option2}, ordinal,true);
the showed an error dot indexing is not supported....
NEED HELP
6 Comments
Jan
on 23 Jul 2019
If data is a cell, what do you expect data.data{1,4} to do?
Please post the complete error message, when you mention it in the forum.
I do not know, what a "popup drop down list" is.
Alan Antony
on 24 Jul 2019
Edited: Alan Antony
on 24 Jul 2019
Jan
on 24 Jul 2019
@Alan: What about using the ColumnFormat of the table? If you insert a cell string for a a specific column, there is a pulldown menu in each cell. All cells of this column have the same contents of tis menu, but you can choose an individual enty for each row.
See:
doc uitable
Alan Antony
on 24 Jul 2019
Jan
on 24 Jul 2019
Please post the code you have used. Restart Matlab and try it again.
Alan Antony
on 24 Jul 2019
Accepted Answer
More Answers (0)
Categories
Find more on R Language in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!