Skip to Content
0

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

Dec 16, 2017 at 01:04 PM

43

avatar image
Former Member

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

10 |10000 characters needed characters left 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.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Dec 18, 2017 at 07:42 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Arjun Biswas Dec 18, 2017 at 04:41 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded