Hi I'm getting a JS error when trying to using cascading dropdowns (defined below)
@(Html.Kendo().DropDownList()
.Name("makes")
.HtmlAttributes(new { style = "width:100%" })
.OptionLabel("Select make...")
.DataTextField("text")
.DataValueField("value")
.DataSource(source =>
{
source.Read(read =>
{
read.Url("/NoMatchVehicle/GetMakeValues");
});
})
)
@(Html.Kendo().DropDownList()
.Name("models")
.HtmlAttributes(new { style = "width:100%" })
.OptionLabel("Select model...")
.DataTextField("text")
.DataValueField("value")
.DataSource(source =>
{
source.Read(read =>
{
read.Url("/NoMatchVehicle/GetModelValues?make=");
read.Data("makes");
})
.ServerFiltering(true);
})
.CascadeFrom("makes")
.Enable(false)
.AutoBind(false)
)
The first dropdown is populated fine but upon the selection on the first dropdown I get a JS error
jquery.js:8641 Uncaught RangeError: Maximum call stack size exceeded
at Function.isArray (<anonymous>)
at buildParams (jquery.js:8641)
Any Ideas on why this could be happening I am basing this of this example