MultiSelect cascade from DropDownList

2 posts, 0 answers
  1. Jian
    Jian avatar
    1 posts
    Member since:
    Dec 2012

    Posted 29 Mar 2013 Link to this post

    We have two dropdowns, second one CascadeFrom the first, using MVC wrapper.  The second dropdown actually needs to be a MultiSelect.  MultiSelect doesn't appear to have a CascadeFrom option.  Please confirm that cascading is not possible with the new MultiSelect control.  Seems like that's something MultiSelect would support.  Any known workarounds?  Thanks.     

    Here's the existing code, we're trying to make the second dropdown a MultiSelect
    @(Html.Kendo().DropDownListFor(m => m.InputModel.CampusCode).OptionLabel("--- select ---").BindTo(Model.Campuses))
    @(Html.Kendo().DropDownListFor(m => m.InputModel.RepUserCode)
          .DataSource(source =>
                  source.Read(read => read.Url("/GetCampusUsers);
          .OptionLabel("-- select --")
  2. Georgi Krustev
    Georgi Krustev avatar
    3687 posts

    Posted 29 Mar 2013 Link to this post

    Hello Jian,

    Even that the MultiSelect does not support cascadeFrom option, you can manually implement the required functionality. On cascade event of the first dropdownlist just filter the dataSource of the multiselect. This jsFiddle demo shows how filtering can be implemented. 

    Kind regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top