Selected Values null in model binding - how to retrieve values selected?

2 posts, 0 answers
  1. Robert
    Robert avatar
    9 posts
    Member since:
    Jan 2013

    Posted 28 May 2013 Link to this post


    Current Kendo version being used is 2013.1.514.340.

    The MultiSelect has values and can be selected. When the model is passed to the controller, the value in the model for the MultiSelect, the value is always null.

    Below is the code I am using, is this code set up correctly ?

    View:
    @(Html.Kendo().MultiSelectFor(x => x.x2010ArchitectureModeling)
             .Name("VS2010_Architecture_and_Modeling")
             .Placeholder("Select features...")
             .BindTo(new SelectList(ViewBag.vs2010ArchitectureModeling, "Value", "Text"))
    Model:
    public IList<string> x2010ArchitectureModeling { get; set; }

    Controller:

    public ActionResult PlaceOrder(OrderFormViewViewModel model)
            {
                 // model.x2010ArchitectureModeling is null here
            }

  2. Robert
    Robert avatar
    9 posts
    Member since:
    Jan 2013

    Posted 28 May 2013 Link to this post

  3. Kendo UI is VS 2017 Ready
Back to Top