Hi
I have DropDownList control which looks:
@(Html.Kendo().DropDownListFor(m => m.VatCategoryId)
.Name(
"VatCategoryId"
)
.DataTextField(
"Text"
)
.DataValueField(
"Value"
)
.AutoBind(
false
)
.DataSource(source =>
{
source.Read(read =>
{
read.Action(
"GetVatCategoriesDefault"
,
"VAT"
).Data(
"getCountry"
).Type(HttpVerbs.Get);
});
})
In read method I am passing a list with categories. Some I want one of the item be selected. So I set property Selected = true in SlectedListItem.
Data which view is receiving are good but the default category is not selected.
What could be wrong?