Skip to Content
avatar image
Former Member

"sap.ui.table.table" checkbox can not be disabled

I build a page with Sapui5 which use "sap.ui.table.table" component.

There is the requirement "if property of obj 'used' is false,the item's checkbox in table should be disabled".

I couldn't find the method which can make the checkbox disabled in api.

I don't konw if there is a method or property can implement the requirement.

By the way,i can not use "sap.m.table".Because the style of it is wrong.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 09, 2018 at 09:17 AM

    Hi ..

    It doesnt matter if you use sap.m.table or sap.ui.table.table .. as you need to disable the checkbox , first of all are you using sap.m.checkbox or sap.ui.commons.checkbox ??

    For sap.m.checkbox use property editable for which we have corresponding setters and getters (setEditable and getEditable)..

    and if you are using sap.ui.commons.checkbox than replace it with sap.m.checkbox .. as sao.ui.commons is deprecated now



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      Thank you for your answer.

      It is a way to solve this problem.

      I will try it.

      Thank you very much.

      Best Regards