This is a migrated thread and some comments may be shown as answers.

MultiSelect cascade from DropDownList

1 Answer 1758 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Jian
Top achievements
Rank 1
Jian asked on 29 Mar 2013, 03:30 PM
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)
      .DataTextField("FullName")
      .DataValueField("ClientUserCode")
      .DataSource(source =>
          {
              source.Read(read => read.Url("/GetCampusUsers);
              source.ServerFiltering(true);
          })
      .OptionLabel("-- select --")
      .AutoBind(false)
      .CascadeFrom("InputModel_CampusCode")
      )

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 29 Mar 2013, 04:09 PM
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!
Tags
MultiSelect
Asked by
Jian
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or