Can anyone advise on the recommended approach to cascading combo boxes when the user could be "timed out" from their session when they select from the first list.
Basically, the first list is populated by being bound to the mvc model on page load. However, the second is defined to pull data from the server via a json Response.
The issue is that if, between loading the first page and the user selecting something from that list, the user is timed out of their session the list doesn't get populated, not error is display, and the list is populated with a lot of "undefined" values.
So, my question is, what's the best practice for handling this situation with kendo mvc?
here's the code for the view..
Basically, the first list is populated by being bound to the mvc model on page load. However, the second is defined to pull data from the server via a json Response.
The issue is that if, between loading the first page and the user selecting something from that list, the user is timed out of their session the list doesn't get populated, not error is display, and the list is populated with a lot of "undefined" values.
So, my question is, what's the best practice for handling this situation with kendo mvc?
here's the code for the view..
<
div
class
=
"row"
>
<
div
class
=
"leftbox"
>
@Html.LabelFor(m => m.OrganisationId)
</
div
>
<
div
class
=
"rightbox"
>
@(Html.Kendo().ComboBoxFor(m => m.OrganisationId)
.BindTo(Model.OrganisationList)
.Placeholder("Select Organisation")
.Suggest(true)
.Filter(FilterType.Contains)
.HtmlAttributes(new { @class = "kendoDropdown wideDropdown", selectWidth = "400" }))
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"leftbox"
>
@Html.LabelFor(m => m.UserId)
</
div
>
<
div
class
=
"rightbox"
>
@(Html.Kendo().ComboBoxFor(m => m.UserId)
.Placeholder("Select User")
.DataSource(source => source.Read(read => read.Action("GetUsers", "Auth").Data("getOrganisationId")).ServerFiltering(true))
.DataTextField("value")
.DataValueField("id")
.HtmlAttributes(new { @class = "kendoDropdown wideDropdown"})
.Enable(false)
.AutoBind(false)
.CascadeFrom("OrganisationId")
.Events(e => e.Change("enableButton") )
</
div
>