Skip to Content
avatar image
Former Member

I am Having sap.ui.table and i want to disable all the checkbox for the table

I am having sap.ui.table and I want to disable all the check boxes for the table ,the Seletion mode is Multitoggle for the the table

Add comment
10|10000 characters needed characters exceeded

  • If you do not want multiple row selection then do not set the table's selection mode as MultiToggle. If you need to use this mode on certain conditions then set the selection mode as Single/None by default and depending on your condition(s) change it to MultiToggle.

  • Get RSS Feed

2 Answers

  • Dec 18, 2017 at 07:42 AM

    Hi Dheeraj,

    Best way is setting selectionMode to None (sap.ui.table.SelectionMode.None) or else

    you can use below CSS (but Not preferable).

    .sapUiTableRowSelectors .sapUiTableRowHdrScr, .sapUiTableRowHighlights .sapUiTableRowHdrScr { display: none !important; } .sapUiTableRowSelectors .sapUiTableColRowHdr, .sapUiTableRowHighlights .sapUiTableColRowHdr { display: none !important; }

    Thanks

    Venkat

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 18, 2017 at 04:41 AM

    Hi Dheeraj Agrawal,

    You can achieve this through the enabled property of the checkbox. While binding the data to the table, you can set the enabled property of the checkboxes of each row as false.

    Regards,

    Arjun Biswas

    Add comment
    10|10000 characters needed characters exceeded