I have a Model which contains a property
public decimal? CountedStockQuantity {get;set;}
I bind this property to grid column like this:
columns.Bound(col => col.CountedStockQuantity).EditorTemplateName("FixedNullableDecimal").Width(120).ClientTemplate("#= (CountedStockQuantity == null) ? ' ' : CountedStockQuantity #");
I use a editor template :
@model decimal?
@(Html.Kendo().NumericTextBoxFor(m => m)
.HtmlAttributes(new { style = "width:100%" })
)
When I leave an empty value in control, validation occur
The field Counted qty. must be a number.
How do I need to build an template editor to avoid this validation ?
public decimal? CountedStockQuantity {get;set;}
I bind this property to grid column like this:
columns.Bound(col => col.CountedStockQuantity).EditorTemplateName("FixedNullableDecimal").Width(120).ClientTemplate("#= (CountedStockQuantity == null) ? ' ' : CountedStockQuantity #");
I use a editor template :
@model decimal?
@(Html.Kendo().NumericTextBoxFor(m => m)
.HtmlAttributes(new { style = "width:100%" })
)
When I leave an empty value in control, validation occur
The field Counted qty. must be a number.
How do I need to build an template editor to avoid this validation ?