Get numeric value on Datalist

You need to add a new property to the class that Radzen has generated. Add a new partial class with the same name and namespace and the extra property:

  1. Create a new file in the server\Models directory e.g. Product.Partial.cs
  2. Create a partial class with the same namespace as your original one
using System.ComponentModel.DataAnnotations.Schema;

namespace YourAppName.Models.DataSourceName
{
    public partial class Product
    {
          [NotMapped] // Instruct Entity Framework not to persist this property in the database
          public int NumericValue { get; set; }
    }
}