Error with Multiselect looking for property "ChildContent" after component upgrade.

1 Answer 479 Views
MultiSelect
Jstemper
Top achievements
Rank 2
Bronze
Iron
Jstemper asked on 28 Mar 2022, 09:19 PM

I'm getting the following error after upgrading from 2.x to 3.x of the Blazor library. 

Unhandled exception rendering component: Object of type 'Telerik.Blazor.Components.TelerikMultiSelect` 
does not have a property matching the name 'ChildContent'.

This happens when this control attempts to load.

 <FormItem Field="@nameof(NoteVM.AssignedToUser)">
     <Template>
         <TelerikMultiSelect Data="Users"
                             AutoClose="false"
                             Placeholder="Select Assign To Users"
                             Width="100%"
                             Filterable="true"
                             TextField="@nameof(UserInfoVM.UserName)"
                             ValueField="@nameof(UserInfoVM.UserName)"
                             @bind-Value="@AssignedToUsers">
                      <MultiSelectPopupSettings>
                      <DropDownListPopupSettings Height="200px" />
                      </MultiSelectPopupSettings>
                      </TelerikMultiSelect>
     </Template>
 </FormItem>

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Dimo
Telerik team
answered on 29 Mar 2022, 10:17 AM

Hi John,

The error means that the <TelerikMultiSelect> tag has an invalid (not recognized) child tag:

  • The <MultiSelectPopupSettings> tag has to be wrapped by <MultiSelectSettings>.
  • <DropDownListPopupSettings> doesn't belong here at all.

See Breaking Changes in the Popup Settings and MultiSelect Popup Settings for examples.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
MultiSelect
Asked by
Jstemper
Top achievements
Rank 2
Bronze
Iron
Answers by
Dimo
Telerik team
Share this question
or