Grid ReDraw After DataSource Update

When the grid's binding collection changes is there any way to prevent the header columns of the grid from re-drawing again? I have a custom header template that the user can type in and after a collection update the header re-draws itself and what the user has typed is lost.

I attempted to preserve the header template and re-apply them on a re-draw and this partially worked, but now the Entry they are typing in loses focus and it won't take focus back.

1 Reply

JA Jayaraman Ayyanar Syncfusion Team May 22, 2018 07:29 AM UTC

 
Thanks for contacting Syncfusion support. 
 
We have checked your query for the HeaderTemplate re-draw after the collection update. We have tested the reported query with hosting the entry as header template, updating the items in the collection of the ViewModel and also updating the collection which is binded to the ItemSource of DataGrid. In the both case, the entry text updated by the user is still remain. We need to confirm that whether do you want to remain the focus of the entry after updating the items in the collection or update the collection. If you want to retain the column when changing the ItemSource. Refer the below link. 
 
 
We have attached the tested sample and you can download the same from the below link. 
 
Incase, if your use case is differ from us. Please modify the given sample to replicate the issue which would be much helpful for us to validate the issue and provide you the solution in one shot at earlier. 
 
Regards, 
Jayaraman. 


Loader.
Up arrow icon