When working with a detail and you need to control enabling multi-select on or off and also programmatically selecting all rows, or none, the detail has some built in functions that you can use to accomplish this. These functions are part of the detail, which are available from the GridUtilitiesV2 mixin.

Turning Multi-Select On
To turn on multi-select for the detail, which will show a checkbox for each row:
this.setMultiSelect();
Turning Multi-Select Off
To turn off multi-select for the detail, which will hide the checkboxes:
this.unSetMultiSelect();
Selecting All Rows
To select all rows in the detail, which will enable multi-select, showing the checkboxes, and also will check all:
this.setSelectAllMode();
Deselecting All/Any Rows
To deselect all, or any selected rows in the detail, which will uncheck all rows, but does not hide the checkboxes (to hide the checkboxes, disabling multi-select, you can also call unSetMultiSelect):
this.unSelectRecords();




Hi, Where do I put these Lines of codes for Multi-select on/off in a detail/grid?
Hi Hassan,
These go in the detail schema. When you create a detail there are two schemas (files). The page and the detail (grid) itself. This code goes in the detail schema. You can add this code in the init of the detail if you always want the grid to behave the same.
Ryan