In my project this code
generates following html
Could not read "disconnections" data because datasource property (dataSource:{transport:{read:{url:"/Event/_Disconnections" ... etc. ) is not generated. Why? Please help.
@(Html.Kendo().DropDownListFor(x => x.Event.DisconnectionId)
.DataValueField("Id")
.DataTextField("Name")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("_Disconnections", "Event");
})
.ServerFiltering(true);
})
)
generates following html
<
input
id
=
"Event_DisconnectionId"
name
=
"Event.DisconnectionId"
type
=
"text"
value
=
"0"
/><
script
>
jQuery(function(){jQuery("#Event_DisconnectionId").kendoDropDownList({dataTextField:"Name",dataValueField:"Id"});});
Could not read "disconnections" data because datasource property (dataSource:{transport:{read:{url:"/Event/_Disconnections" ... etc. ) is not generated. Why? Please help.