Hi!
Im trying to use expressions ${...} inside column template to define some item background color dinamically but i don't know how i can achieve this.
Example:
<ejs-grid id="Grid" dataSource="Model" allowPaging="true" allowTextWrap="true">
<e-grid-pagesettings pageSize="5"></e-grid-pagesettings>
<e-grid-columns>
<e-grid-column field="Code" headerText="Code" width="100"></e-grid-column>
<e-grid-column field="Name" headerText="Name"></e-grid-column>
<e-grid-column headerText="Status" template="#template" width="120"></e-grid-column>
</e-grid-columns>
</ejs-grid>
<script id="template" type="text/x-template">
<div class="badge" style="background-color:${BadgeColor}">${BadgeName}</div>
</script>
I can't use the expression with the style attribute. Maybe i am missing a escape character? Or it cannot be done this way?
Thank you so much!