
Hello,
We have a business requirement where customer want to have checkbox which will be displayed as checked when they select record on editable grid. And by default it should be unchecked like we have it in web client.
I have created 2 web resource image one with check and other with uncheck image. I am displaying uncheck image besided views column as shown below. I have acheived this by adding JS on view column which is explained here. https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/display-custom-icons-instead
Need help to switch this image onRecordSelect from editable grid to check image. I know we can have JS code to be executed on OnrecordSelect from editable but not sure how to switch the image.
Hello,
I'm not sure I understand the requirement here. Editable Grids already offer some sort of checkbox behavior when a line is selected.
The selected lines also get highlighted in blue:
My advice would be stick to out-of-the-box (and maybe invest on training / change management if this seems to be an issue for users) instead of doing custom developments to achieve the unchecked / checked box requirement.
The docs article you shared (https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/display-custom-icons-instead) seems to be more about displaying custom icons that change depending on record data, rather than fact that the row is selected or not. Furthermore, as documented, the OnRecordSelect event doesn't work when multiple lines are selected.
Henry