I have a grid with an editor template like so:
@model decimal?
@(Html.Kendo().DropDownList()
.Name("VatRate")
.DataValueField("DecimalValue")
.DataTextField("Name")
.BindTo((System.Collections.IEnumerable)ViewData["VatRates"])
)
In my grid I have the column defined like so:
columns.Bound(p => p.VatRate).EditorTemplateName("DropDownListVatRates");
The VatRate property is defined like so:
public
decimal
VatRate {
get
;
set
; }
What I would like is for select the appropriate VAT rate and for the DDL to pass the decimal value back to the cell (something like this http://www.screencast.com/t/V41xQlYWq )
But I can't figure out how to do it, any help would be appreciated?