Telerik Forums
UI for .NET MAUI Forum
1 answer
52 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
40 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
1 answer
98 views

I'm trialing telerik maui controls and got this issue specific to iOS.
The app launches, an alert dialog injected by telerik is shown with the "this is a trial" information.
when dismissing the alert, the app crashes:

[0:] An error occurred: 'Object reference not set to an instance of an object.'. Callstack: '   at Telerik.Maui.Controls.TelerikLicense.<>c__DisplayClass12_0.<ShowLicenseMessage>b__1()

any ideas?
it works fine on windows and android, just iOS keeps failing and stopping me from validating telerik controls.

 

####EDIT####

I've managed to reproduce this issue on a separate project.

  • Created a new default maui project in visual studio for windows.
  • added the telerik trial 10.0 package, updated maui to 9.0.40
  • Added a new blank ContentPage called Loading.xaml. changed nothing on it.
  • In app.xaml.cs, modified the `CreateWindow method to `return new Window(new Loading());` as we're not using Shell.
  • Added another new ContentPage called PageWithTelerik.xaml
  • on that page, simply added a telerik RadButton, which should trigger the trial popup.
    • <telerik:RadButton x:Name="button" Text="Click me!" />
  • back on app.xaml.cs, overridden the OnStart() method:
        protected override void OnStart()
        {
            var mainPage = Application.Current.Windows[0].Page;

            if (mainPage is Loading)
            {
                Page target = new PageWithTelerik();

                MainThread.BeginInvokeOnMainThread(() => { Application.Current.Windows[0].Page = target; });
            }
        }

if you then run this app, it'll:

  1. get to PageWithTelerik
  2. display the trial popup (but the watermark that is usually is shown behind the popup is not visible!)
  3. crash with a null reference exception when you dismiss the popup.
Nikola
Telerik team
 answered on 24 Feb 2025
1 answer
239 views

I have a CollectionView with Groups which does not seem to be refreshing when groups are expanded/collapsed.  If I move the control (kind of force a scroll) things seem to refresh

What can I do to force the control to refresh.  Can I capture when the user Expand/Collapse and do a Load.  I have looked at LoadOnDemand, but I don't see how this would work.

 

Example

Control before expand

After Expand (You can see Pipeline Device shows expanded, but nothing is visible)

After do a scroll on control

 

Nasko
Telerik team
 answered on 24 Feb 2025
1 answer
47 views

Using the RichTextEditor I am attempting to set a default value for font family using a style but so far have been unable to get it to work.

Here is my attempt.

      StringBuilder _HtmlContent = new StringBuilder();
      _HtmlContent.Append("<html><head><style>body { font-family:verdana;; font-size: 16px; }</style></head><body>");
      _HtmlContent.Append("<p>This is a paragraph with Verdana font.</p>");
      _HtmlContent.Append("</body></html>");

 this.richTextEditor.Source = RichTextSource.FromString(_HtmlContent.ToString());

What am I doing wrong?  Thanks for your help.

 

Daniel

Didi
Telerik team
 answered on 14 Feb 2025
1 answer
62 views

Hi,

Does the chat control support rendering messages that are in Markdown format? For Example:

**James Smith**

- Department: Development

- Role: Senior Developer

This should show James Smith in bold. If the chat control does not support this can you suggest any approaches to achive this?

Thanks,

Euan

Didi
Telerik team
 answered on 11 Feb 2025
1 answer
99 views

I know this isn't entirely related to Telerik.

I read on GitHub, in the Windows App SDK repository, that there is an issue with dragging UI elements when running an app elevated as an Administrator.

In the past, I built my own GridSplitter using the drag-and-drop gesture in an older version of MAUI, and it worked perfectly. However, now with MAUI 9, if I run the app as an Administrator, dragging crashes the app with a "Catastrophic failure. Drag start failed. If this is an elevated process, drag/drop is not supported there." due to UAC limitations.

If I run it normally, everything works fine.

I was wondering if your new RadGridSplitter control and other similar controls in the Windows build also crash when using drag in Admin mode?
I project to replace mine by yours 😉

I know that some developers implement their own custom drag-and-drop manager. Have you done something similar in your Telerik MAUI package? If so, can it be used as a replacement for the built-in Windows App SDK drag-and-drop API?

Elena
Telerik team
 answered on 30 Jan 2025
1 answer
64 views

Hello,

I wanted to do a simple rearrangement of the control elements' position for IOS and Adnroid, like this: "- [input] +" instead of the current positioning "[input] - +"

previously it was possible to do so using ControlTemplate.

How i can acchive that using the latest verion of telerik controls?

Appretiate for your help

 

Didi
Telerik team
 answered on 28 Jan 2025
1 answer
52 views

Hi all...

 

We are using a RadCollectionView with grouping (Level 1 and 2),

We came up with a need to drag and drop (reorder) a whole collection of items (group) by dragging and dropping only the group header.

Is this achievable?

 

And if not - can this functionality be added?

Thanks in advance, Itzik :)

Didi
Telerik team
 answered on 20 Jan 2025
1 answer
142 views

When trying to use ScrollItemIntoView to show the last item of a CollectionView, It doesn't scroll to the end of the list and only show the first pixel on the item. Need to manually scroll to the bottom to view the whole line.

Works correctly on Windows but not on iOS.

.Net 8, Telerik 9.0.0

Didi
Telerik team
 answered on 17 Jan 2025
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?