Hello,
I am using a RadGridView to show my Data. In this View I have a TextColumn with a Status. Now I want to bind a Enum with this Status to show my Value from the Enum in the RadGridView. My attempt was to define a property to return the StatusStype compared to the Status from my current Item.
But I do not exactly know how to do this. Or is there a better way?
Hope for some help :-)
My View
<
telerik:RadGridView
ItemsSource
=
"{Binding Items}"
>
<
telerik:RadGridView.Columns
>
<
telerik:TextColumn
Header
=
"Document"
BindingValue
=
"Document"
/>
<
telerik:TextColumn
Header
=
"Status"
BindingValue
=
"StatusType"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
My Enum
public enum StatusTypes
{
[Description("Open")]
Offen = 0,
[Description("In Process")]
InProcess = 1,
[Description("Closed")]
Closed = 2,
}
My Model
public class MyModel
{
public string Document{ get; set; }
public decimal Status { get; set; }
public StatusTypes StatusType
{
get
{
return Status = StatusTypes
}
}