Double call on dataManager when loading a grid with column of type checkBox

Hi,

I am trying to load my boolean data to a grid. all the row column (HasAccess) data is true.

The grid calls the api  function twice. on the first call to the dataManager, it is able to populate the row checkboxes with checks, but on the second call it deselects all checkboxes, even though the data being mapped is identical.


first call:


all objects there has value HasAccess = true.



second call:


all rows get uncheck:



I also double checked:



Can you please help me figure this out. Thank you so much.


1 Reply

AG Ajith Govarthan Syncfusion Team November 4, 2021 03:46 AM UTC

Hi JC Flores, 

Thanks for contacting Syncfusion support. 

Based on your query, you are facing double API request when you enable the checkbox column in your Grid application. By default, in our EJ2 Grid when enable checkbox column with field property, the Grid component will send initially one request to server side to fetch the current page records and will send another request to fetch all the true values to load the checkbox column as per the field value. Which is the default behavior of our EJ2 Grid component. 

Please get back to us if you need further assistance. 

Regards, 
Ajith G. 


Loader.
Up arrow icon