MultiSelect BindTo List<string> not posting selected values

2 posts, 0 answers
  1. Eric
    Eric avatar
    19 posts
    Member since:
    Mar 2014

    Posted 25 Jul 2014 Link to this post


    Hi - I just have a list of strings to bind.

    I get the list from splitting a comma separated list...

    I want the list of selected values posted to the server:

    ​ var multiselections = Model.InformationIntakeGroupOption.Split(new char[] {','}).ToList();
     @(Html.Kendo().MultiSelectFor(model => model.InformationIntakeValue)
     .Placeholder("Click here to select opitons...")
     .BindTo(multiselections)
     .AutoClose(false)
     .Animation(false)
     )

    All I get is the first selected value, not all selected values...

    Any ideas?
  2. Eric
    Eric avatar
    19 posts
    Member since:
    Mar 2014

    Posted 25 Jul 2014 in reply to Eric Link to this post

    Sorry - my model was incorrect.

    It must be: public string[] InformationIntakeValue { get; set; } and not just string!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top