Example with ListView.

4 posts, 0 answers
  1. Xavier
    Xavier avatar
    28 posts
    Member since:
    Dec 2010

    Posted 28 Sep 2015 Link to this post

    Hi, 

    Can you show me an example where a ListView or a Multiselect is inside an form. This form is called from a "grid" on next way .Editable(e => e.Mode(GridEditMode.PopUp).TemplateName("ProductorEdit"))

     

     

    Thanks in advance

     

     

    Xavier de la Rubia.

     

     

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 30 Sep 2015 Link to this post

    Hello Xavier,

    Although we do not have a demo exactly matching your criteria, I would suggest checking the following links:
    Regards,
    Alexander Popov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Xavier
    Xavier avatar
    28 posts
    Member since:
    Dec 2010

    Posted 01 Oct 2015 Link to this post

    I’m going to explain our case. The Grid has Popup property and  the form ProductorEdit assigned to EditorTemplate property.

     

    Code from Grid 

    .Editable(e => e.Mode(GridEditMode.PopUp).TemplateName("ProductorEdit"))

     

    Code from Form ProductorEdit

    <div class="form-group">
    @Html.LabelFor(model => model.SelectedFacilities, new { @class = "col-md-1 control-label" })
           <div class="col-md-9 col-md-offset-1">
            @Html.Kendo().MultiSelectFor(m => m.SelectedFacilities).Name("SelectedFacilities").BindTo(new SelectList((System.Collections.IEnumerable)ViewBag.Facilities, "OptionId", "Name"))
            </div>
    </div>

     

    Code from Model

    [DisplayName("Característiques")]
            public List<int> SelectedFacilities { get; set; }

     

    In resume

    The data are correctly assigned to control MultiSelect from ViewBag.Facilities, but the action Create and Update does not receive the data from the SelectedFacilities property of Model, we think that behavior is because the control MultiSelect sends an object to controller and should be a request POST.

     

    Thanks in advance

     

     

    Xavier Delarubia.

  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 05 Oct 2015 Link to this post

    Hello Xavier,

    Please find attached a sample project that shows how the Kendo UI MultiSelect widget could be used in custom popup editor. 

     

    Regards,
    Boyan Dimitrov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready