2
How can I set a default startup value for the field Numerictextboxfor kendo’s.
Ex: My field is empty initialized. I want it to come with a default set by me:
@(Html.Kendo().NumericTextBoxFor(model => model.MinVoltage).Name("MinVoltage").HtmlAttributes(new { style = "width: 6em;font-size:12px;font-weight:normal" }))
@Html.ValidationMessageFor(model => model.MinVoltage)
My model is like this:
    [Column("MIN_VOLTAGE")]
    [Required(ErrorMessage = "Campo obrigatório")]
    [Display(ResourceType = typeof(Messages), Name = "MinimuVoltage")]
    [Range(0.1, 99.99, ErrorMessage = "Valores válidos: 0.1 a 99.99 ")]
    public double MinVoltage { get; set; }
I set a Range value, and I want it to start by default at 0.1, But the field is initialized with no default value as shown above.
How can I set a default startup value for the field Numerictextboxfor?
