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

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

2 Answers 95 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Bartley
Top achievements
Rank 1
Bartley asked on 14 Nov 2013, 12:42 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 15 Nov 2013, 02:31 PM
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!
0
Bartley
Top achievements
Rank 1
answered on 17 Nov 2013, 05:59 PM
That second post was a accident.  I did not think the first one posted!
Tags
MultiSelect
Asked by
Bartley
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Bartley
Top achievements
Rank 1
Share this question
or