Skip to Content

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

Textfield Value State problem

Hi All,

I am using TextFields as cells of Table . I am setting ValueState properties of Texfields with sap.ui.core.ValueState.Error as dynamically .

My problem is  If I resize the browser window , valuStates of Textfields are being None automatically .

If do you have any solution please let me know .


Former Member

Hi Onur,

I got your problem now. You are using "Auto" for visibleRowCountMode. In result, what happens in the background is when you re-size the browser window the table rows get adjusted with respect to screen height. Since, the property value is set to "Auto".

To overcome the above issue, what you can do is use addEventDelegate method of table. So, when you re-size or maximize the screen it will hit the onAfterRendering event. Also, if you want to store the value that you are providing in text field, use model concept there.

I edited the JSBin, check now: JS Bin - Collaborative JavaScript Debugging


Sai Vellanki.

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