How do I send selected values to Action Method?

2 posts, 0 answers
  1. Joel
    Joel avatar
    1 posts
    Member since:
    Feb 2014

    Posted 19 Apr 2019 Link to this post


    I keep getting null values   I am trying to get a list of  int  or string for  selected  DataValueField.

    Thank you,    

     @using (Html.BeginForm("SetPermitValues", "BusinessLocation"))
                    <div class="modal-body">
                        <label asp-for="SelectedPermitTypes" class="control-label"></label>
                        @(Html.Kendo().MultiSelectFor(b => b.SelectedPermitTypes)
                                                        .HtmlAttributes(new { style = "width:100%" })
                                                        .DataSource(source =>
                                                            source.Read(read =>
                                                                read.Action("GetPermitTypesAsync", "BusinessLocation", new { id = Model.Id });
                        <span asp-validation-for="SelectedPermitTypes" class="text-danger"></span>
                    <div class="modal-footer">
                        <button type="button" id="HidebtnModal" class="btn btn-primary">Cancel</button>
                        <button type="submit" class="btn btn-primary">Add New Permit</button>


            public ActionResult SetPermitValues(List<int> Value)

  2. Eyup
    Eyup avatar
    4071 posts

    Posted 22 Apr 2019 Link to this post

    Hello Joel,

    You can find information about this requirement provided in the following post:

    If you prefer, I can also prepare a new MVC sample and send it over to you.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top