Skip to Content
avatar image
Former Member

Checkbox in a table

Hi,

I am using a grid table(https://experience.sap.com/fiori-design/ui-components/grid-table/) which is part of sap.ui.table.Table. In the documentation, the table has an option to show a checkbox for every row to select. It mentions that setting Selection mode as MultiSelect, the checkboxes appear. But it really doesnt show the checkboxes for selection. Is there something else to be added.

Please help.

Thanks,

Manoj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 27, 2015 at 01:01 PM

    Hi guys,

    thanks for the replies. The MultiToggle option is the right option to get the checkboxes onto the table. However, not sure for what reason, i had to set the styleclass of the view or the table to either "sapUiSizeCompact" or "sapUiSizeCozy". The checkboxes appeared only when i set the style class.

    Thanks,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2015 at 08:09 PM

    Hi Manoj,

    Use selectionmode as sap.ui.table.SelectionMode.MultiToggle, more info - SAPUI5 SDK - Demo Kit

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2015 at 06:35 AM

    Hi Manoj,

    Will this help?

    SAPUI5 Explored

    Thanks,

    Karthik A

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2015 at 08:08 PM

    multi select refers to the row selection or the checkbox selection? also, make sure your checkboxes are bound to the model so that they can correctly be bound to the value on a property on each row

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 26, 2015 at 07:00 AM

    Hi Manoj,

    Thanks it is working only when style is set to "sapUiSizeCompact" .

    I would require to navigate on row selection. However , rowSelectionChange event seems to be not working . Any suggestions would really help?

    regards

    Ramana

    Add comment
    10|10000 characters needed characters exceeded