Hello,
I'm experiencing a problem where the multislect submits the value of one item only even if more than one item is selected. Shouldn't it submit all the values delimited by a comma?
Here is my code:
View:
Contoller:
Is there something wrong I am doing??
I'm experiencing a problem where the multislect submits the value of one item only even if more than one item is selected. Shouldn't it submit all the values delimited by a comma?
Here is my code:
View:
@using (Html.BeginForm("Send", "MultiSelect", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<
div
class
=
"demo-section"
>
<
h3
class
=
"title"
>Select Continents</
h3
>
@(Html.Kendo().MultiSelect()
.Name("multiselect")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(continents)
.Events(e =>
{
e.Change("change").Select("select").Open("open").Close("close").DataBound("dataBound");
})
)
</
div
>
<
input
id
=
"sendButton"
type
=
"submit"
value
=
" Send "
/>
}
public partial class MultiSelectController : Controller
{
public ActionResult Events()
{
return View();
}
public ActionResult Send(string multiselect)
{
//the string parameter multiselect has only one value even if more than one //value is selected
return View();
}
}