Duplicated
Last Updated: 04 Aug 2022 07:01 by ADMIN
Brett
Created on: 04 Aug 2022 04:23
Category: UI for .NET MAUI
Type: Bug Report
0
Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:RadComboBox" under IOS.
  

    <VerticalStackLayout>
        <Label 
            Text="Welcome to .NET MAUI!"
            VerticalOptions="Center" 
            HorizontalOptions="Center" />
        <Label Text="Status:" />
        <telerik:RadComboBox/>

    </VerticalStackLayout>

This works for Android. IOS gives error "Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:RadComboBox

But  telerik:RadCheckBox does not have the same problem.

   <VerticalStackLayout>
        <Label 
            Text="Welcome to .NET MAUI!"
            VerticalOptions="Center" 
            HorizontalOptions="Center" />
        <Label Text="Status:" />
        <telerik:RadCheckBox IsChecked="True"/>

    </VerticalStackLayout>     

Will work for IOS and Android.

How do I fix this?

I am using VS Community 2022 Preview 

Version 17.3.0 Preview 6.0

and Telerik.UI.for.Maui.Trial 2.2.0

 

 

 

     
Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Didi
Posted on: 04 Aug 2022 07:01

Hi Bret,

Thank you for this report.

I have changed the status of this item as Duplicated, as we already have this issue logged in our feedback portal. https://feedback.telerik.com/maui/1566733-controls-mac-ios-windows-app-cannot-be-build-if-some-radcontrols-don-t-have-x-name 

It seems the issue happens when creating a custom control in general. We have reported this issue to Microsoft and logged a bug report. Here is the link to the issue: https://github.com/dotnet/maui/issues/7503 

Solution:

Add x:Name to all controls you use.

Regards,
Didi
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.