App Designer Table Properties

3 views (last 30 days)
cletus blum
cletus blum on 29 Jul 2017
Answered: Mandar Patwardhan on 31 Jul 2017
I am working in App Designer and am noticing a small quark with the UITable properties. I am trying to load data from a text file into the UITable:
function ShowMDRButtonPushed(app, event)
T = readtable('dout1.txt')
t = table2cell(T)
app.MDRTable.Data = t
app.MDRTable.ColumnName = T.Properties.VariableNames
end
It loads the data into the data into the UITable (MDRTable above) but only displays the first 10 columns, of 25, when I run the app. I leave the UITable Properties Configuration box empty (I deleted all the columns). I have noticed when I make the app full screen and then push the button to load the data i get 20 of my 25 columns displayed. The horizontal scroll bar works for both instances.
Any thoughts on how I can have my entire table displayed?

Answers (1)

Mandar Patwardhan
Mandar Patwardhan on 31 Jul 2017
I tried to reproduce this in R2017a version of MATLAB. This is an expected behavior. The app loads the data asynchronously as you scroll using the horizontal scroller. If you want to display all (as much data as you can) at once, you can try assigning smaller widths to the individual columns so that more number of columns will be displayed. This is a workaround for a special use case and not a recommended workflow.

Categories

Find more on Develop Apps Using App Designer 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!