App Designer Table Properties

3 vues (au cours des 30 derniers jours)
cletus blum
cletus blum le 29 Juil 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?

Réponses (1)

Mandar Patwardhan
Mandar Patwardhan le 31 Juil 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.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by