JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › inconsistency with cell templates › Reply To: inconsistency with cell templates
Hi,
The Grid is used a bit incorrectly in the shared sample. Using element.querySelector on elements which are dynamically created and reused is the source of the issue. I would suggest you to look at our help docs and examples in order to learn how to better utilize the component. It is also better to create a grid instance, set all the Grid properties and then append the Grid to the DOM instead of dynamically setting multiple properties which will require re-renders from a performance point of view. If you app requires this, then I would suggest using the Grid’s beginUpdate and endUpdate methods before and after setting your properties. By doing that, you will end up with only 1 refresh.
Regards,
Markov
Smart UI
https://www.htmlelements.com/