Cascading ComboBox Datasource empty when browser back button is used

2 posts, 0 answers
  1. Robert
    Robert avatar
    14 posts
    Member since:
    Feb 2014

    Posted 09 Sep 2015 Link to this post

    I am storing the values selected with my Cascading ComboBoxes in the local storage so it will remember what they have chosen.  The problem is when the browser back button in clicked, the Cascaded combobox's Datasource is empty so when I set the value it just puts the # in the drop down instead of showing the selected item.  

     From what I can tell it is not calling the read method when the back button is pressed and is not cacheing the list since I am using ServerFiltering.  I have even tried manually calling the read method of the datasource in JavaScript but to no avail.

     How can I get this list to re-populate when the back button is used?

    <div class="col-md-6">
            .Placeholder("Select Client...")
            .Events(events => events.Cascade("Clients_cascade").Change("Clients_change"))
            .DataSource(ds => ds
                .Read(read => read.Action("GetClients", "Home")))
    <div class="col-md-6">
            .Placeholder("Select Project...")
            .Events(events => events.Change("Projects_change"))
            .DataSource(ds => ds
                .Read(read => read.Action("GetProjectsForClient", "Home").Data("FilterProjects"))
                .Events(events => events.Error("Projects_error")))

  2. Georgi Krustev
    Georgi Krustev avatar
    3688 posts

    Posted 11 Sep 2015 Link to this post

    Hello Robert,

    In general, the widget will request the data from the server if serverFiltering is enabled. Here is a Dojo demo that shows this in action: and the related screencast:
    Could you let me know if I am missing something? Note that the given demo is applicable to ASP.NET MVC too, as the widget's behavior does not differ between Kendo UI and UI for ASP.NET MVC.

    Georgi Krustev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top