I have a couple of dropdowns that are setup to cascade:
Example data for the first dropdown (being cascaded from):
Everything is working just fine except when Employment is selected in the first dropdown this does not fire cascading. Is it intended when the value of the dropdown is = 0 that cascading won't fire? This seems quite silly to me because when there is nothing selected .value() returns an empty string.
01.
@(Html.Kendo().DropDownListFor(model => model.FixedMovementType)
02.
.OptionLabel(
"* Not Selected"
)
03.
.DataTextField(
"Name"
)
04.
.DataValueField(
"Id"
)
05.
.BindTo(Model.FixedMovementTypes))
06.
@Html.ValidationMessageFor(model => model.FixedMovementType,
""
,
new
{@
class
=
"alert-error"
})
07.
@(Html.Kendo().DropDownListFor(model => model.Location)
08.
.OptionLabel(
"* Not Selected"
)
09.
.DataTextField(
"Name"
)
10.
.DataValueField(
"Id"
)
11.
.DataSource(source => source.Read(read => read.Action(
"GetLocationsRead"
,
"FixedMovement"
).Data(
"FilterLocation"
)).ServerFiltering(
true
))
12.
.AutoBind(
false
)
13.
.CascadeFrom(
"FixedMovementType"
))
Example data for the first dropdown (being cascaded from):
1.
{
2.
Id = 0,
3.
Name =
"Employment"
4.
},
5.
{
6.
Id = 1,
7.
Name =
"Store"
8.
}