JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › inconsistency with cell templates › Reply To: inconsistency with cell templates
October 23, 2023 at 8:04 pm
#109053
Keymaster
Hi edvardsmarkff,
For styling Grid cells, please refer to https://www.htmlelements.com/docs/grid-styling-cells/ and for applying templates look at https://www.htmlelements.com/demos/grid/column-dynamic-template-with-components/. You can see in the example, that the “template” is a function. We check whether there is a template. If there is not a template, we set it. Next, when the cell is re-rendered, we have a template and just update it instead of creating new html elements which will affect the performance.
Regards,
Markov
Smart UI
https://www.htmlelements.com/