geoxp
October 25, 2019, 3:18pm
1
Hi,
(blazor)
I am using a REST data source and want to display a status icon in a grid data column.
Depending on a int value , to show a red, orange or green status image.
I tried to set a variable in the rowselect event, but then all rows change to the actual value:
different row:
Is is possible to add a computed column to the datasource or any other proposal ?
Regards
Gerald
enchev
October 25, 2019, 3:29pm
2
Hi Gerald,
In my opinion the best way to achieve this is to define Template for the column with your logic.
Best Regards,
Vladimir
geoxp
October 25, 2019, 3:55pm
3
Hi Vladimir,
I used a the column template and added a image control.
How can i add logic to the path proberty ?
Or do you mean some different template ?
Reagrds
gerald
enchev
October 25, 2019, 4:03pm
4
You can have for example three images and show/hide them based on some value with expression for image Visible property.
Setting the Visible property to an expression is demonstrated here .
geoxp
October 28, 2019, 8:35am
6
HI,
I tried to cascade the conditonal operator. (? : )
If i have just 2 values, then it works:
If i try to have more different values, i get an error message:
Thanks
Gerald