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

Example with ListView.

3 Answers 154 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Xavier
Top achievements
Rank 1
Xavier asked on 28 Sep 2015, 03:31 PM

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.

 

 

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 30 Sep 2015, 10:41 AM
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
0
Xavier
Top achievements
Rank 1
answered on 01 Oct 2015, 10:53 AM

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.

0
Boyan Dimitrov
Telerik team
answered on 05 Oct 2015, 02:49 PM

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
Tags
ListView
Asked by
Xavier
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Xavier
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or