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

Hello,

When I used the RadCartesianChart and RadPieChart in MAUI with the sample code from https://docs.telerik.com/devtools/maui/controls/chart/types/pie-chart, the iOS simulator failed to open successfully, displaying a crash message. However, when I use RadButton and RadCheckBox, it works fine, so I can assure the successful configuration.

Visual Studio Community 2022 for Mac
version 17.5.7 (build 6)

Runtime
.NET 7.0.1 (64-bit)
Architecture: X64
Microsoft.macOS.Sdk 12.3.2372;

NuGet
version: 6.4.0.117

Maui: 7.0.86

Telerik.Ul.for.Maui.Trial -5.2.0

Please can you help me to solve this problem.

Best regards

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Jun 2023
1 answer
141 views
Do I have a solution to change the cursor color for AuroComplete 
Lance | Senior Manager Technical Support
Telerik team
 answered on 15 Jun 2023
1 answer
146 views

handlers.AddHandler(typeof(Telerik.Maui.Controls.RadEntry), typeof(RadEntryCustomHandler));

for ANDROID I have this Handler

public partial class RadEntryCustomHandler : RadEntryHandler
{
  protected override void ConnectHandler(RadMauiEntry nativeView)
  {
    try
    {
      nativeView.EditText.TextCursorDrawable.SetColorFilter(new PorterDuffColorFilter(Graphics.Color.White, PorterDuff.Mode.Darken));
    }
    catch { }
  }
}

 

for IOS I have this Handler

public class RadEntryCustomHandler : RadEntryHandler
{
  protected override void ConnectHandler(RadMauiEntry nativeView)
  {
    try
    {
      nativeView.TextField.TintColor = UIColor.White;
    }
    catch { }
  }
}

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 15 Jun 2023
1 answer
478 views

How to change the color of the following icon in a RadButton in code behind:

<telerik:RadButton Clicked="DoSomething"
                               ClassId="PhonePortrait"
                               x:Name="PhonePortrait"
                               BorderThickness="0"
                               BackgroundColor="Transparent"
                               HorizontalOptions="Center"
                               VerticalOptions="Center"
                               Margin="12,0,0,0"
                               WidthRequest="32"
                               HeightRequest="32">
                <telerik:RadButton.ImageSource>
                    <FontImageSource FontFamily="IonIcons" Glyph="&#xf24e;" Color="#999999" Size="28"/>
                </telerik:RadButton.ImageSource>
</telerik:RadButton>

Lance | Senior Manager Technical Support
Telerik team
 answered on 13 Jun 2023
1 answer
316 views
Hello, I find myself in need of creating a RadListView that uses templateSelector depending on the data it presents, in addition to this, for the creation of the itemTemplate I need to do it dynamically since some will present 4 radioButton or sometimes n radioButton. The question is: can I just create the item template in code form or is it necessary to create the whole RadListView? Do you have any examples or where I can see documentation of generating these elements by code?
Greetings!!
Lance | Senior Manager Technical Support
Telerik team
 answered on 08 Jun 2023
0 answers
726 views

Hello everyone, I write this post in the hope that someone can help me with this problem.

I'm newbie with this MAUI framework. I'm trying to create a simple Android / iOS application but I'm experiencing navigation performance issues.

Whenever I navigate to a page with more "heavy" information, the UI simply freezes until the information is loaded. For example if I use a ListView with only 13 elements the UI freezes for at least one/two seconds, this in release mode cannot be acceptable. I tried to put a Busy Indicator to simulate the loading of the page but it freezes until the information is loaded. It is a very bad user experience.

All my services are running on background threads. I'm currently using Telerik components and I'm also using Shell and the CommunityToolkit.Mvvm package.

On Windows the application works perfectly, without any problem but on Android it is very bad.

I've looked everywhere for a solution. I found some similar problems and most of the proposed solutions were to avoid ListViews nested in scroll views and so on, I already checked all that but nothing changed.

 

Has anyone here ever faced a problem like this? If yes, how did you manage to solve it?

 

Thank you in advance for your attention!

Rúben
Top achievements
Rank 1
 asked on 29 May 2023
1 answer
104 views

Hi I have attached my sample application where I've been trying out the RadDataForm and the behaviour seems inconsistent. 

I have a few scenarios where the validation and commit modes are behaving differently to how the docs suggest they should. I have laid them out in the XAML for MainPage to make it easy for you to test. 

Scenario 1 - Form level settings:

When I apply ValidationMode="LostFocus" to the whole form it still validates on property changed, UNLESS I also set CommitMode to LostFocus. You can test this by uncommenting each option in my MainPage.xaml file. The Name field will validate as soon as you start typing.

Scenario 2 - Control level settings:

ValidationMode="LostFocus" on the control level only doesn't seem to work at all, even with commit = lost focus.

In order to get my form to behave how I want, I have to set the form level validation AND commit to "LostFocus", however this now introduces another issue. The datepickers don't set their values on LostFocus (because I don't think they get focus since they use a popup), and with the form overriding it, it also doesn't commit the value on property changed, even if I set it on the individual datepicker control. Which means if I have any custom validation around these properties, it won't work properly because the values have not been set.

In my case I wrote a custom validator to check that StartDate is always before EndDate. If the form is set up with no options, this works correctly, but if I add LostFocus so that my RadEntries behave correctly, when my validator fires for the dates, the value of EndDate is always not set. I have to manually commit it with form.CommitChanges.

This doesn't seem like correct behaviour, unless I'm misunderstanding the docs.

Any help would be appreciated :)

Didi
Telerik team
 answered on 25 May 2023
1 answer
463 views
I am using a RadListView with a Horizontal Linear layout.
While I can make the entire listview right justified with HorizontalOptions set to End, the individual items with in the list are still left aligned.
Is there a way to change this?
Lance | Senior Manager Technical Support
Telerik team
 answered on 24 May 2023
0 answers
175 views

I have a listview using templatecells.

With android API >= 31, everything looks fine (default background is transparent)

On androd API 28, the background defaults to white, you can manually set it to other colors which work, but if set to transparent, the background stays white

almostEric
Top achievements
Rank 1
Iron
Iron
 asked on 24 May 2023
1 answer
76 views

Hi, 

I'm using the RadComboBox and the behaviour is different between iOS and Android.

On iOS, when I click on the field the dropdown opens, but on Android it will only open if I click on the arrow icon. Clicking in the middle of the control does nothing. 

Using EditMode works and the control opens when it gets focus, but I don't want to use Edit mode.

Is this correct? It seems inconsistent with the other telerik controls I'm using like DatePicker where clicking anywhere on the control opens the picker / popup. 

Thanks!

Didi
Telerik team
 answered on 24 May 2023
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?