ejGrid select all checkbox in combination with ejs dropdwon

I have a table which content depends on option choosen in the dropdown. I need to apply grid functionality select all (checkbox in table head). Important thing: devices which have property shared: false can't be selected -  checkbox next to device name needs to be disabled.Devices which have icon, share-alt like 'Development A..' can't be checked, their checkbox needs to be  disabled. Is possible to disable this checkbox, and that select all checkbox doesn't affect on disabled checkbox? I didn't find possibility to add property 'disabled'.

So if there is no option to add word 'disabled' and resolve this problem on easier way, please take a look on this code:


Here the problem is when I select  Offline devices option in the dropdown button and click select all checkbox, and then select All devices option in the dropdown, all devices will be selected - device which checkbox has class disabled also


Maybe with more devices will be more bugs.

I'm also open for some new suggestions how to resolve this. 


Best regards,

Kristina


2 Replies

RR Rajapandi Ravi Syncfusion Team October 25, 2021 01:25 PM UTC

Hi Kristina,  

Greetings from Syncfusion support 

The EJ2 Grid’s Checkbox Selection feature is work based on the Windows File Manager’s Checkbox selection. It selects all the rows when header checkbox checked. In which we are unable to prevent the selection on particular rows. Since this is the default architecture of EJ2 Grid’s Checkbox Selection.  

But in your requirement, you want to disable the selection on particular rows in the Grid. So, we have considered this requirement as a feature task - “Provide support for select only the selectable rows through header checkbox”. At Syncfusion, we are committed to fixing all validated defects (subject to technical feasibility and Product Development Life Cycle ). We have planned to implement this and include this feature in Volume 4 Main Release which will be rolled out in the month of December 2021.  


Regards, 
Rajapandi R 



RR Rajapandi Ravi Syncfusion Team December 21, 2021 12:49 PM UTC

Hi Kristina, 

Currently we have postponed this feature and we will provide further updates when we consider it in the first week of January. Until then we appreciate your patience. 

Regards, 
Rajapandi R 


Loader.
Up arrow icon