Telerik Forums
UI for .NET MAUI Forum
1 answer
611 views

I am currently creating my first project with Telerik Maui. In the MauiProgram.cs file, 3 lines are underlined in green.

"This call site is reachable on: 'Android' 21.0 and later. 'RadAppHostBuilderExtensions.UseTelerik(MauiBuilder)' is only supported on: 'Windows' 10.0.17763.0 and later"


is displayed as a warning message. The program compiles and runs without errors on Windows.

On Android I get the following error message:

System.TypeLoadException: 'Could not load type of field 'Telerik.Maui.TelerikFont:UsePlatformFontProperty' (84) due to: Could not load file or assembly 'Microsoft.WinUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=de31ebe4ad15742b' or one of its dependencies.'

Here is the code (The affected lines are marked in green) :

using Telerik.Maui.Controls.Compatibility;

namespace xxx;

public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
            .UseMauiApp<App>()
            .UseTelerik()
            .ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                fonts.AddFont("ionicons.ttf", "IonIcons");
            });

        builder.Services.AddSingleton<MainPage>();
        builder.Services.AddTransient<PageList>();

        return builder.Build();
}
}

One of the advances of Maui over Xamarin is that only one code base is required for different platforms.
Does this also apply to the Telerik Maui Library?

 

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 06 Dec 2022
1 answer
1.2K+ views

Hi,

I created a project and referenced the following libraries:

I have imported namespace:

    xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"

and created a RadCheckBox like so:

<telerik:RadCheckBox x:Name="rcb" VerticalOptions="Center" />

When I run the application I get the following error:

 

Is there anything I am missing?

Lance | Senior Manager Technical Support
Telerik team
 answered on 02 Dec 2022
1 answer
405 views

In my MAUI app I target 

  • net7.0   
  • net7.0-android
  • net7.0-ios

I'm building a custom control and when I try to use the telerik:RadButton I get the following when building for iOS

Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:RadButton"

See below code as an example, it works fine for other controls but not the button.

<?xml version="1.0" encoding="utf-8" ?>
<ContentView
	x:Class="MyApp.Control"
	xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
	xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
	xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
	x:Name="this">

	<StackLayout>
		<telerik:RadBusyIndicator BackgroundColor="Red" />
		<telerik:RadButton BackgroundColor="Red" Text="Hello" />
	</StackLayout>

</ContentView>

I've tried touse the Telerik namespace instead of the schema as well but no luck.

Richard
Top achievements
Rank 1
 updated question on 02 Dec 2022
1 answer
450 views

HI, I am evaluating the maui UI but only found out the data binding for expandoobject or dynamicobject is not working, is this a true limitation?

i believe this was supported in wpf or uwp, any reason why this is the case for net maui? it seems such an easy thing to support...

Didi
Telerik team
 updated answer on 01 Dec 2022
1 answer
1.5K+ views

When running a Maui app on Windows, a page containing a CarouselView shows all items at once instead of having to swipe with the mouse to reveal each consecutive item.

Does Telerik offers an alternative?

Or can I create the same behaviour with an existing control?

Lance | Senior Manager Technical Support
Telerik team
 answered on 28 Nov 2022
1 answer
322 views

Hi, 

Running the ControlSamples demo app, if you add a CheckChanged event handler to the RadCheckBox , the event

handler code is not hit. If the RadCheckBox is changed to the default MAUI checkbox it works. We are seeing this on

NET 7 Mac OS 12.5.1

Thanks

 

 

Didi
Telerik team
 answered on 17 Nov 2022
1 answer
1.5K+ views

Hello,

I have several controls I want to change the font size and text color for (RadNumericInput, RadTimePicker, and RadTimeSpanPicker). The pop-ups are fine out of the box but the control itself (before being tapped on) has fairly small font and the font is black which doesn't work in Dark Mode. I would like to make the font larger for each of these 3 controls and bind the Text Color to a Color in my Theme so the text color updates based on the theme being Dark vs Light. I'm assuming I would do these changes for all the controls in a similar way, but I am fairly new to Telerik UI. I just don't seem to find a TextColor or FontSize exposed as either an attribute, property, etc. for any of the Rad controls. I must be missing something simple, as every basic control has ability to change text color and size.  

I would appreciate any help somebody could provide. Thank you.

p.s. - Bonus points if you can tell me how to do it in C# rather than XAML, but OK if not. I can adapt it as needed. :)

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Nov 2022
1 answer
588 views

hi,

I got an Telerik License from my employer but also Rider. Is there a way to install Telerik extensions on Rider or do you have any plans for the future to support this?

BR,

Kay

Nikolay Mishev
Telerik team
 answered on 16 Nov 2022
1 answer
238 views
I've set the font size to '1' but would really like to get all that space back (i.e., make the header invisible). Is that possible?
Didi
Telerik team
 answered on 14 Nov 2022
1 answer
219 views

Hello.

Using MAUI Trial 2.3.0

Visual Studio Community 2022 for Mac Preview Version 17.4 Preview (17.4 build 2339)

Checked in iOS 16.0 Simulator.


Disabled combobox does not react on touch on the dropdown arrow. But it reacts on the tap on the text part and allow to change selection in the list.

Tried to set OpenOnFocus to false - same behaviour

<DataTemplate x:Key="ComboBoxTemplate" x:DataType="{x:Type models:JDFModel}">
	<telerik:RadBorder Style="{StaticResource GeneralBorderStyle}">
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="2*" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>

			<telerik:RadHighlightLabel Grid.Column="0" Text="{Binding Path=DisplayName}" Style="{StaticResource RegularLabelStyle}" />
			<telerik:RadHighlightLabel Grid.Column="2" Text="{Binding Path=IsEnabled, Converter={StaticResource BoolToStringConverter}, StringFormat='{0} CoB'}" Style="{StaticResource RegularLabelStyle}" />

			<telerik:RadComboBox Grid.Column="1" Style="{StaticResource RegularComboBoxStyle}" x:Name="box"											   
				SelectionMode="Single"
				ItemsSource="{Binding Path=ItemsSource}"
   
				IsEnabled="{Binding Path=IsEnabled}"
				SelectedItem ="{Binding Converter={StaticResource SelectedValueToItemConverter}, ConverterParameter={x:Reference box}, Path=SelectedValue, Mode=TwoWay, UpdateSourceEventName=SelectionChanged}" />
		</Grid>
	</telerik:RadBorder>
</DataTemplate>


Antoan
Telerik team
 answered on 14 Nov 2022
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?