Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAPUI5 Table Column Resizing Methods, Events, Properties

Dear SAPUI5 Experts,

Our goal is to resize the columns according to the string length of the json file data. Currently, following events and methods are available for sap.ui.table:


Event:

columnResize

Method:

autoResizeColumn(iColId)


The sap.ui.colum offers autoResizable(boolean value) doesn´t show any changes. I also do not see major changes if I change the width of the columns to 100%.

My question is: How to implement these methods/events correctly?

Thank you very much in advance!

Best regards,

Rufat

Tags:
Former Member
Former Member replied

AutoResize example here:

JS Bin - Collaborative JavaScript Debugging</title> <link rel="alternate" type="application/jso…

But the rendering is not the best :-)

Also notice the API hint:

Experimental API:Experimental! Presently implemented to only work with pure text-based controls, the sap.ui.commons.Checkbox and sap.m.Image as well as sap.ui.commons.Image. It will also work for most simple input fields (TextField, CheckBox, but not ComboBox)

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question