cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

saurabh_vakil
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

venkatachala_ck
Active Participant

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

former_member484715
Contributor
0 Kudos

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