Skip to Content

Disable container content

Hello All,

I'm trying to disable all controls that are placed inside another control/container. In my case this container is sap.ui.commons.layout:VerticalLayout, which has in its "content" aggregation all kinds of different controls. I would like to disable all of them at once.

I tried this:

var oControl = this.getView().byId("GeneralOrderDataTabContent");

This had no effect.

Any idea how to solve this?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 15, 2015 at 03:04 PM

    Hi Szilamér,

    the sap.ui.commons.layout.VerticalLayout control is deprecated for a long time (since 1.16). It recommends using the sap.ui.layout.VerticalLayout.

    However, as both share the same code, it should still work, and for me it does:,output

    Which version of UI5 are you using? The above refers to 1.26.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 15, 2015 at 03:00 PM

    Hi Szilamér, you can not disable all controls like this, the best way is using a json model and bind enabled property. Regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.