title: Kendo Grid UI Html helper enum substitution on row value
body: <p>I've got this example and i want to change a numeric value with a string value using an enum. I've tried a few methods, like .ClientTemplate and .EditorTemplateName. How can i use an enum to format the rows? Here is a grid example:</p>
  
  <pre><code>@(Html.Kendo().Grid&lt;TelerikAspNetCoreApp2.Models.OrderViewModel&gt;()
              .Name("grid")
              .Columns(columns =&gt;
              {
                  columns.Bound(p =&gt; p.OrderID).Filterable(false);
                  columns.Bound(p =&gt; p.Freight).EditorTemplateName("Test"); //This is the value to change
                  columns.Bound(p =&gt; p.OrderDate).Format("{0:MM/dd/yyyy}");
                  columns.Bound(p =&gt; p.ShipName).Filterable(f =&gt; f.UI("shipName"));
                  columns.Bound(p =&gt; p.ShipCity).Filterable(f =&gt; f.UI("shipCity"));
              })
              .Pageable()
              .Sortable()
              .Scrollable()
              .Navigatable()
              .Pageable()
              .Scrollable()
              .Filterable()
              .HtmlAttributes(new { style = "height:550px;" })
              .DataSource(dataSource =&gt; dataSource
                  .Ajax()
                  .PageSize(20)
                  .Read(read =&gt; read.Action("Orders_Read", "Grid"))
              )
          ) 
      ....
     @functions {
     public string UseEnum(string x)
     {
         return Enum.Parse(typeof(TelerikAspNetCoreApp2.Enums.Test), x).ToString();
     }
  }
  </code></pre>
  
  <p>And this is the example enum</p>
  
  <pre><code>public enum Test
  {
      zero = 0,
      one = 10,
      two = 20,
      three = 30,
      four = 40,
      five = 50
  }
  
  public static List&lt;SelectListItem&gt; EnumToSelectList(Type enumType)
          {
              return Enum
                .GetValues(enumType)
                .Cast&lt;int&gt;()
                    .Select(i =&gt; new SelectListItem
                    {
                        Value = i.ToString(),
                        Text = Enum.GetName(enumType, i),
                    }
                )
                .ToList();
          }
          @functions {
      public string UseEnum(string x)
      {
          return Enum.Parse(typeof(TelerikAspNetCoreApp2.Enums.Prova), x).ToString();
      }
  }
  </code></pre>