App Designer Table Properties

2 visualizzazioni (ultimi 30 giorni)
cletus blum
cletus blum il 29 Lug 2017
Risposto: Mandar Patwardhan il 31 Lug 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?

Risposte (1)

Mandar Patwardhan
Mandar Patwardhan il 31 Lug 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.

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by