Hello Luc Baeten,
You need to solve this programmatically. However, it can be done with the Eval
method. The following code inside of the TemplateColumn
should achieve the goal:
|<%# (String.IsNullOrEmpty(Eval("Field1").ToString())) ? "Not available" : Eval("Field1") %>
This is simply an if
condition in one line. What it does is first it checks the condition (is Field1 empty) - if so it outputs "Not available", if not it outputs the value of the field.
I hope you'll find this information helpful. Let us know if there is anything else we can do for you.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.