bug in the CheckBox of the DataGrid

Hi

I'm using two different grids. If you select one data from the first grid, the data joined to another grid will be automatically selected. However, although one checkbox of data is irregularly 'rowSelected', the checkbox is not checked.

I used "Grid.selectionModule.selectedRowIndexes" in Script

Please refer to the attached video for more information.


Please give me an example or a solution.


Attachment: CheckBox_Bug_7f869451.zip


1 Reply

SK Sujith Kumar Rajkumar Syncfusion Team November 15, 2021 11:05 AM UTC

Hi TaeWook, 
 
Greetings from Syncfusion support. 
 
Based on the query we could understand that you are facing problem when trying to select Grid rows by using the selectedRowIndexes property. For selecting single or multiple rows we suggest you to use the Grid’s selectRow or selectRows method respectively. This is demonstrated in the below code snippet for your reference, 
 
var gridObj = document.getElementById('Grid').ej2_instances[0]; 
 
// Select’s Grid row of index - 0 
gridObj.selectRow(0); 
 
// Select’s Grid rows of indexes – 1, 3 
gridObj.selectRows([1, 3]); 
 
 
Please get back to us if you require any further assistance. 
 
Regards, 
Sujith R 


Loader.
Up arrow icon