Telerik Forums
UI for .NET MAUI Forum
0 answers
116 views

The old https://nuget.telerik.com/nuget server is obsolete since November 2024. If you use it the following error occurs: 

Failed to retrieve information about 'Telerik.UI.for.Maui' from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Telerik.UI.for.Maui'&semVerLevel=2.0.0'.

As a solution use the v3 server. To redirect your feed to the NuGet v3 protocol, all you have to do is to change your NuGet package source URL to https://nuget.telerik.com/v3/index.json The new v3 API is faster, lighter, and reduces the number of requests from NuGet clients. The new v3 protocol offers faster package searches and restores, improved security, and more reliable infrastructure.  For more details about the Telerik NuGet Server review the Telerik MAUI NuGet Server documentation.

Didi
Telerik team
 updated question on 27 Nov 2024
2 answers
225 views

Hello,

I have installed the trial version of the Maui package [2]. After that I created an empty project: [1] 

  1. In VS Code, open the Command Palette menu by pressing Ctrl+Shift+P on Windows or Linux, or Cmd+Shift+P on Mac.
  2. Select Telerik UI for .NET MAUI Template Wizard: Launch and press Enter

When I try to run/build it, I get this error: 

NU1101: Unable to find package Telerik.UI.for.Maui.Trial. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, NuGet

Which makes sense because there is no Telerik.UI.for.Maui.Trial at this location. 

What am I doing wrong?

Thanks!

[1] https://marketplace.visualstudio.com/items?itemName=TelerikInc.telerik-maui-productivity-tools#:~:text=NET%20MAUI%20Scaffolders-,The%20Telerik%20UI%20for%20.,the%20controls%20through%20an%20UI

[2] https://www.telerik.com/maui-ui?_gl=1*ok4989*_gcl_aw*R0NMLjE3MjY2NjE2OTkuQ2owS0NRanc5S20zQmhEakFSSXNBR1ViNG56N3NOa0NoYUF6UTlZOWREWVNiaVZBeVg4RzRqTkdJRWN3ODdJdzJmZzc0S0ZJSUd2WU9SZ2FBa1hyRUFMd193Y0I.*_gcl_dc*R0NMLjE3MjY2NjE2OTkuQ2owS0NRanc5S20zQmhEakFSSXNBR1ViNG56N3NOa0NoYUF6UTlZOWREWVNiaVZBeVg4RzRqTkdJRWN3ODdJdzJmZzc0S0ZJSUd2WU9SZ2FBa1hyRUFMd193Y0I.*_gcl_au*MTk5NjgwNjY4OS4xNzI2NjYwMDYw*_ga*MTY0MDUzNzA5Ny4xNzI2NjYwMDYx*_ga_9JSNBCSF54*MTcyNjY2MDA2MC4xLjEuMTcyNjY2NzA2OS4yMi4wLjA

Lance | Senior Manager Technical Support
Telerik team
 updated answer on 18 Apr 2025
1 answer
8 views

Hello,

Is there a way to change to the colour of the indicator icon in ExpandCollapseIndicatorStyle.

This is what I have so far:

I've also included a screenshot of the area I'm trying to change. I thought TextColor would work, but that doesn't seem to have helped. I'm looking to change the colour to white or black via a dynamic resource.
<Style x:Key="GroupHeaderStyle" TargetType="telerik:RadCollectionViewGroupView">
                <Setter Property="ExpandCollapseIndicatorStyle" Value="{StaticResource ExpandCollapseIndicatorStyle}" />
                <Setter Property="BackgroundColor" Value="{DynamicResource ListSelector_SearchBarBackgroundColor}" />
                <Setter Property="BorderColor" Value="{DynamicResource ListBorderBackgroundColor}" />
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="VisualStateManager.VisualStateGroups">
                    <VisualStateGroupList>
                        <VisualStateGroup Name="CommonStates">
                            <VisualState Name="Normal" />
                            <VisualState Name="PointerOver">
                                <VisualState.Setters>
                                    <Setter Property="BackgroundColor" Value="{DynamicResource ListBorderBackgroundColor}" />
                                </VisualState.Setters>
                            </VisualState>
                        </VisualStateGroup>
                    </VisualStateGroupList>
                </Setter>
            </Style>
            <Style x:Key="ExpandCollapseIndicatorStyle" TargetType="Label">
                <Setter Property="TextColor" Value="{DynamicResource TextColour}" />
                <Setter Property="IsVisible" Value="False"/>
            </Style>

Didi
Telerik team
 answered on 17 Apr 2025
1 answer
10 views

Hi community,

We wait a long time for recursive mode feature in tree view.

But we found it has some limitations, when parent is expanded and selected and It's childs are selected .

No option to uncheck disable childs.

The support said the need to implement  Recursive mode with Independent mode and add my logic inside.

I added a basic sample code and would like to add the following logic , can you help to implement these scenarios:

Scenario 1 -When the parent expanded and parent checked and  have children, all it's children need to be checked :

You can check whether the child items are nodes from the parent and add them to the Checked Items collection.

Scenario 2 -When the parent not expanded and parent checked and have no children: 

Just add this item to the Checked Items collection. 

Scenario 3 -When  I uncheck child the parent should be unchecked:

How is can be done ?

Scenario 4 - When parent unchecked, how i unchecked all its children:

How is can be done ?

Thanks in advance,

Didi
Telerik team
 answered on 15 Apr 2025
1 answer
19 views
  • using Telerik 10.1.0, Maui 9.0.50
  • this issue was very obvious when using Windows as resizing the app's window made the layouts render incorrectly at certain sizes
  • reproduced this on Windows, but unsure if the same will apply to other platforms.
  • if the calculations are incorrect across platforms the same issues could happen on Android and iOS if you hit the issue straight away at your device screen size or if you use resizeable windows (which I cannot test myself).
  • I've created a couple of test scenarios, one where the item size (255) is defined via its Width (253) and a Margin (1,1,1,1), and another where the Margin is 0 and the Width is 255.
  • see attached screenshots of app running on my pc (Windows 11 build 10.0.26100.3476)

Repro steps:

  1. Create a blank telerik project (I've not used shell);
  2. Update maui to 9.0.50 (for more relevance with current code);
  3. Replace the contents of MainPage.xaml with the xaml shown below;
  4. Remove unnecessary code from MainPage.xaml.cs to allow app to build and run;
  5. OBSERVE:
    1. Test 1.2 fails - items are shown on a single row when they should not fit.
    2. Test 1.3 fails - items are shown on a single row when they should not fit, and the wrap layout is extended to two rows.
    3. Test 2.1 fails - items are show on two rows when they should fit a single one.

     

 

Xaml to use


    <ContentPage.Resources>
        <ResourceDictionary>
            <Style TargetType="Button">
                <Setter Property="WidthRequest" Value="253" />
                <Setter Property="HeightRequest" Value="77" />
                <Setter Property="Background" Value="Green" />
                <Setter Property="TextColor" Value="White" />
                <Setter Property="Margin" Value="1,1,1,1" />
                <Setter Property="Text" Value="Witdh 253, Margin 1,1,1,1" />
            </Style>

            <Style x:Key="NoMargin" TargetType="Button">
                <Setter Property="WidthRequest" Value="255" />
                <Setter Property="Margin" Value="0" />
                <Setter Property="Text" Value="Witdh 255, Margin 0" />
            </Style>
        </ResourceDictionary>
    </ContentPage.Resources>

    <ScrollView>
        <VerticalStackLayout Margin="30,0" VerticalOptions="Center">
            <!--  FIRST TEST  -->
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 765 should fit all its items on a single row" />
            <telerik:RadWrapLayout Background="DarkGreen" StretchLastChild="False" WidthRequest="765">
                <Button />
                <Button />
                <Button />
            </telerik:RadWrapLayout>
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 764.5 shows items in a single row (when they shouldn't fit)" />
            <telerik:RadWrapLayout Background="DarkRed" StretchLastChild="False" WidthRequest="764.5">
                <Button />
                <Button />
                <Button />
            </telerik:RadWrapLayout>
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 764.4 shows items in a single row (when they shouldn't fit) and presents a blank row" />
            <telerik:RadWrapLayout Background="DarkRed" StretchLastChild="False" WidthRequest="764.4">
                <Button />
                <Button />
                <Button />
            </telerik:RadWrapLayout>
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 764.3 shows items in two rows, as expected" />
            <telerik:RadWrapLayout Background="DarkGreen" StretchLastChild="False" WidthRequest="764.3">
                <Button />
                <Button />
                <Button />
            </telerik:RadWrapLayout>

            <!--  SECOND TEST  -->
            <Label Margin="30" HorizontalOptions="Center" Text="Second test" />
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 765 should fit all its items on a single row, but doesn't" />
            <telerik:RadWrapLayout Background="DarkRed" StretchLastChild="False" WidthRequest="765">
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
            </telerik:RadWrapLayout>
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 764.5 shows items in two rows" />
            <telerik:RadWrapLayout Background="DarkGreen" StretchLastChild="False" WidthRequest="764.5">
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
            </telerik:RadWrapLayout>
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 764.4 shows items in two rows" />
            <telerik:RadWrapLayout Background="DarkGreen" StretchLastChild="False" WidthRequest="764.4">
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
            </telerik:RadWrapLayout>
            <Label Margin="30" HorizontalOptions="Center" Text="The layout below at width 764.3 shows items in two rows" />
            <telerik:RadWrapLayout Background="DarkGreen" StretchLastChild="False" WidthRequest="764.3">
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
                <Button Style="{StaticResource NoMargin}" />
            </telerik:RadWrapLayout>
        </VerticalStackLayout>
    </ScrollView>

 

 

Didi
Telerik team
 answered on 14 Apr 2025
1 answer
14 views

Hello!  I have seen various answers in the forum around templates for RadTabView, and some have shown the then-current defaults for some of the TabView templates.

Could you please provide the default templates here, and eventually update the documentation to show the defaults, similar to how the Xamarin documentation does?  I'm referring to this documentation:

https://docs.telerik.com/devtools/maui/controls/tabview/templates

I'd love to be able to see the default HeaderTemplate, HeaderItemTemplate, ContentTemplate, etc.

Thank you!

 

Didi
Telerik team
 answered on 09 Apr 2025
1 answer
12 views

Hello,

We have a MAUI app that we are transitioning from Xamarin Forms. In the app we have a popup page that appears, which has a RadListPicker control in it. 

In Xamarin.Forms we used to use rg.plugins.popups and would add the RadListPicker control there. Everything would work fine, it would appear ok on both platforms.

Since MAUI, on iOS, we have not been able to replicate that behavior. We have tried using Mopups, and CommunityToolkit.MAUI Popups with no success.

Using Mopups, the ListPicker is shown behind the popup page, and using the CommunityToolkit, the Picker does not show up at all.

Steps to reproduce:

1. Install CommunityToolkit.MAUI package

2. Create a Popup page and add a ListPicker with any data

3. Navigate to the popup and try to open the picker

Any help would be greatly appreciated.

 

Thank you!

Didi
Telerik team
 answered on 03 Apr 2025
0 answers
21 views

Hello, 

In my MAUI application I want to use: 

 <telerik:RadNumericInput Value="{Binding Gamma, Mode=TwoWay}"  StringFormat="{}{0:F1}" Minimum="0" Maximum="4.0" Step="0.1" />

The problem is, I can't type in e.g. "2.1", I type "2." and after I type 1  it make a 4.0 out of it. But I can type  "2 " in it and use the buttons to select "2.1". 

That's a pretty simple use case, what am I doing wrong? 

Thanks,

Harald

Software
Top achievements
Rank 1
 asked on 31 Mar 2025
1 answer
28 views
I'm currently using a chart bar series within a ScrollView. The reason it's within a ScrollView is because I have a CollectionView of 4 cards displaying relevant data to the charts at the bottom of the ScrollView. Natively when I'm pinch zooming or panning (any tap or drag gesture on the chart), I can disable the ScrollView with the chart pan and pinch gestures using MPAndroidChart so that it doesn't interfere with the pinch zoom. I managed to figure out a way on iOS to disable the ScrollView. I add Pan and Pinch Gestures to the chart which prevents the scrolling but this doesn't work on Android. For it to be uniform, Can you suggest a way where we can disable the ScrollView when I Pan or Pinch Zoom on the bar chart? Thank you.
Didi
Telerik team
 answered on 11 Mar 2025
1 answer
30 views

Hi,

I have a project in .NET 9 and I'm using Telerik 10.0.0, I'm trying to display a TreeView with the default style, but I only have the text displayed.

Here is the XAML code:

<telerik:RadTreeView Grid.Row="1"
                        ItemsSource="{Binding Catalog.Children}"
                        BackgroundColor="#FFFFFF"
                        ItemTapped="OnTreeItemTapped"
                        LoadChildrenOnDemandCommand="{Binding LoadOnDemandCommand}"
                        VerticalOptions="FillAndExpand">
    <telerik:TreeViewDescriptor DisplayMemberPath="Name"
                                ItemsSourcePath="Children"
                                TargetType="{x:Type viewModel:CatalogParentItemViewModel}" />
    <telerik:TreeViewDescriptor DisplayMemberPath="Name"
                                TargetType="{x:Type viewModel:CatalogItemViewModel}" />
</telerik:RadTreeView>

In the screenshot, the "Sans nom" item is of type CatalogParentItemViewModel and it does have children.

In the console, I have the following error which may be related:

java.lang.RuntimeException: Font asset not found /data/user/0/com.app.test/cache/telerikfont.ttf
	at android.graphics.Typeface.createFromAsset(Typeface.java:1061)
	at crc6452ffdc5b34af3a0f.NavigationViewFragment.n_onCreateView(Native Method)
	at crc6452ffdc5b34af3a0f.NavigationViewFragment.onCreateView(NavigationViewFragment.java:39)
	at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3119)
	at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:577)
	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:286)
	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2214)
	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2115)
	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2052)
	at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:703)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8705)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)

How can I have the default style shown in the examples of the documentation?

Thanks

Julien

Didi
Telerik team
 answered on 26 Feb 2025
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?