JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › Cell background colour Blazor › Reply To: Cell background colour Blazor
September 20, 2021 at 10:12 am
#102240
xyzzy
Member
Peter,
Thanks for all your efforts resolving this, especially as this was all done over the weekend.
<template id=”colourTemplate”>
<div style=”width: 100%; height:100%;”>
<!– Note: this shows a few designer errors but works–>
<div style=”background:{{value}};“> </div>
</div>
</template>
- Set the background not the background-color;
- Set the div content to be as an empty div content doesn’t display anything.
Again, thanks for the excellent support.