Updating Toolbar Items disabled states causes a re-render of the entire syncfusion grid component

I have set up a SfGrid component that takes a large number of records. When I select a row using the checkbox column I make sure to set PreventRender to true on the corresponding event handler function to ensure the grid records don't get re-rendered. 

 

However, inside the function, I call this function to change the disabled state of the toolbar, which in turn causes the entire SfGrid component to re-render.

It is also important to note that I have set the toolbar items using the toolbar parameter.

 

I have tried multiple ways to ensure only the toolbar re-renders such as using the toolbar template, but everything causes the entire SfGrid component to re-render. Is there any way to target a re-render on the toolbar without rendering the entire SfGrid component?


1 Reply

NP Naveen Palanivel Syncfusion Team May 16, 2023 02:15 AM UTC

Hi Elijah,


We checked your query and  before proceeding further with your requirement kindly share the below details to validate further at our end.


  1. Share us the entire code snippet of model class how it is defined in the grid.
  2. Share us the video demonstration of the issue with elaborately , it will more useful to us.
  3. Please share more detail about re-rendering and its causes any issue ?
  4. If possible share us an simple issue reproduceable sample


The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.


Regards,

Naveen Palanivel


Loader.
Up arrow icon