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

MultiSelect Not Displaying Item Template Correctly

1 Answer 410 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 18 Dec 2019, 03:09 AM

The following code is is not displaying the item template correctly with check boxes.   If I don't use the item template it displays the data correctly.

 

<kendo-multiselect style="width: 250px;" [data]="userOrganizations" [textField]="'name'"
                   [valueField]="'partner_oid'" placeholder="State/Municipality" [(ngModel)]="selectedOrganization" [autoClose]="false"
                   [popupSettings]="{ width: 250, height: 350}">
  <ng-template kendoMultiSelectItemTemplate let-dataItem>
    <input type="checkbox" class="k-checkbox"
           [checked]="isItemSelected(dataItem.name)">
    <label class="k-checkbox-label">Name{{ dataItem.name }}</label>
  </ng-template>
</kendo-multiselect>

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 18 Dec 2019, 12:15 PM

Hi John,

Thank you for the provided code snippet and screenshot.

I looked through it but the code seems valid. I also create a StackBlitz example and on my side, it works as expected. Please check the demo:

https://stackblitz.com/edit/angular-odb5fc?file=app%2Fapp.component.ts

Please make sure that the latest version of our theme and kendo packages are used as this ensures that the project will benefit from the most recent bug fixes and features.

In case the issue persists, send us some further details about this case. Ideally, a runnable application or StackBlitz demo where we can observe the reported behavior, inspect the code and try to find the root of the issue.

Thank you in advance.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
MultiSelect
Asked by
n/a
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or