Display checkbox using template in react data grid and able to hide checkbox

Hi team, 

I have created a react data grid.I am getting checkbox by using ColumnDirective type ='checkbox'. I need to have the same checkbox by using template and able to hide based on condition. Could you please provide solution for this.


3 Replies

RS Rajapandiyan Settu Syncfusion Team March 25, 2022 09:18 AM UTC

Hi Lavanya, 

Thanks for contacting Syncfusion support. 

Before proceeding with your requirement, we need following details to validate further. 

  1. Why do you want to hide the checkbox in some the rows? What is the purpose of it?
  2. Are you want to prevent the selection for that particular rows?
  3. Explain your complete requirement in detail.

Regards, 
Rajapandiyan S 



LK lavanya killamsetti March 26, 2022 01:12 PM UTC

Hi Rajapandiyan,


Yes, I want to prevent the selection of particular row, when one of the column value satisfy the condition in the same row. For that I need to hide/ not display the checkbox.

Could you please help on this.

Regards

Lavanya









RS Rajapandiyan Settu Syncfusion Team March 28, 2022 12:59 PM UTC

Hi Lavanya,  

Thanks for your update.  

The EJ2 Grid’s Checkbox Selection feature is work based on the Windows FileManager’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 will include this feature in any of our upcoming release.  

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.   


Regards,  
Rajapandiyan S 


Loader.
Up arrow icon