Skip to content

How to display dropdown multiselect values in widgets #2712

@tsbalaji

Description

@tsbalaji

I have a ng-model populated from multiselect dropdown with key value pair i want to display the selected key value pair in widgets
I created a ng-model with key value pair and the multiselect dropdown is displayed when the user selects multiple values it gives me a object reference set to null error

DesignerView.Simple.cshtml
  <select multiple="multiple" id="statreport-selector" ng-model="properties.SelectedReports.PropertyValue" class="form-control">
                <option disabled>Select a stat...</option>
                <option ng-repeat="report in reports" value="{{report.Title}},{{report.ReportName}}">{{report.Title}}</option>
            </select>
Index.cshtml
@model SitefinityWebApp.Mvc.ViewModels.StatsReportViewModel
@using Telerik.Sitefinity.Frontend.Mvc.Helpers
@using Telerik.Sitefinity.Services
@{
    var reports = Model.SelectedReports;
}

help me in getting the key value pair selected in multi select dropdown to display in widgets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions