Multi List -- Adding items that are not in the auto-complete list

3 posts, 1 answers
  1. Bartley
    Bartley avatar
    16 posts
    Member since:
    Mar 2013

    Posted 13 Nov 2013 Link to this post

    I am using JSON To populate the AutoComplete List of the MultiSelect like Below:

    Controller
    public JsonResult PopList(string name)
    {
        var lstNames = db.GetNames.Select(e => new
        {
            name = e.OrgNames                             
        });         
        return Json(orgs, JsonRequestBehavior.AllowGet);
    }
    Razor:

    @(Html.Kendo()
     .MultiSelect()
     .Name("nameBox")
     .AutoBind(true)
     .Placeholder("Select names...")
     .DataTextField("name")
         .DataSource(source =>
          {
             source.Read(read =>
             {
                read.Action("PopList", "ListNames");
             })
                .ServerFiltering(true);
           })
     
    )
    Can I bind the Value to a list that is not in the list I am using for the auto-complete list?

    I attached a image.


    If the user wanted to type a name and add it, or if the value being bound are not in the list can it be added?  

    When saved the items would then appear in the list.

  2. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 15 Nov 2013 Link to this post

    Hello Bertley,

    Please don't open multiple tickets about the same issue. This creates confusion, slows down the support.

    I already posted an answer in the other support ticket that you opened. 

    Kind Regards,
    Petur Subev
    Telerik
    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 MVC is VS 2017 Ready
  4. Bartley
    Bartley avatar
    16 posts
    Member since:
    Mar 2013

    Posted 17 Nov 2013 Link to this post

    That second post was a accident.  I did not think the first one posted!
Back to Top