Hi,
I'm programming web site to use the grid with MVC...
I have this example in your web Site
https://www.igniteui.com/templating-engine/conditional-templates
I want to use the conditional-Templates to change the color of a specifi cell for the specific value.
I want to know where i can find some MVC example or tell me how i can convert this to MVC.
thx
Hello Michel,
Thank you for contacting Infragistics!
To achieve conditional templates in MVC instead of using a script tag you can just pass in your template as a string, for example:
column.Unbound("Person").HeaderText("Template").Template(“{{if ${age} > 21 }} <tr><td><b>First Name: </b>${firstName}</td><td><b>Last Name: </b>${lastName}</td><td><b>Age: </b>${age}</td></tr> {{/if}}”);
https://www.igniteui.com/help/creating-basic-conditional-template#steps
https://www.igniteui.com/help/creating-conditional-template-containing-default-statement