Telerik Forums
UI for .NET MAUI Forum
0 answers
1 view

Hi!

I added RadCartesianChart inside RadSlideView.

I have charts where on one slide there is NumericalAxis on another CategoricalAxis.

Is it possible to do an extension and treat this, or another way?

Custom axis: Numerical axisExt

  

Regards,

Rodrigo.

Rodrigo
Top achievements
Rank 1
Iron
 asked on 18 Mar 2024
1 answer
5 views

Dear Telerik team,

I was trying to bind "Source" and "data for HTML string" of "RadRichTextEditor" but, when I tried to change the bound value to another value, it was not updated on UI.

I debugged code of RadRichTextEditor of Telerik and the second condition "IsDocumentLoaded" of OnSourcePropertyChanged() has to become "true" but, it's not "true" and I assume that this cause problem as below code.

private async void OnSourcePropertyChanged(RichTextSource richTextSource)
{
if (richTextSource == null)
;
else if (!this.IsDocumentLoaded)
;
else
{
string htmlText = await this.GetHtmlAsync(richTextSource);
this.dispatchHandler.InvokeOnMainThread((Action) (async () =>
{
await this.richTextView.SetHtmlAsync(htmlText);
await this.richTextView.ClearHistoryAsync();
}));
this.dispatchHandler.InvokeOnMainThread((Action) (async () => await this.richTextView.ScrollToPositionAsync(0.0, 0.0)));
}
}

 

I believe that the data(IsDocumentLoaded) is updated when "document-loaded"message come to RichTextView.

private void OnDocumentLoaded(object sender, EventArgs eventArgs)
{
this.IsDocumentLoaded = true;
this.UpdateDefaultValues();
this.UpdateContentSize();
this.UpdateCommandState();
}

 

Would you please check this problem and improve it so the bound data can be updated and shown to UI correctly whenever I change the HTML string data?

 

 

 

Yana
Telerik team
 answered on 18 Mar 2024
1 answer
3 views

Hi,

Using the Maui scheduler if I add a 1 day appointment it shows over 2 days. Is this expected behaviour?

Thanks,

Euan

   Appointments.Add(new Telerik.Maui.Controls.Scheduler.Appointment()
   {
       UniqueId = "999",
       Subject = "Test",
       Location = "Testing",
       Start = DateTime.Now.Date,
       End = DateTime.Now.Date.AddDays(1),
       Category = new SchedulerAppointmentCategory("Crewable", "#FFFF80")
   });


Lance | Manager Technical Support
Telerik team
 answered on 15 Mar 2024
2 answers
6 views

Hi,

Using VS 2022 17.10 / .NET 8.0.3 / Telerik UI for MAUI 6.8 / MAUI 8.0.10 / Android 10 (API 29)

I've got a RadGridView on a ContentPage :


 <c:NDCDataGrid
     x:Name="dataGridDetails"
     ItemsSource="{Binding DetailedData}">
     <t:RadDataGrid.Columns>
         <t:DataGridTextColumn HeaderText="Location" PropertyName="LocationName" />
         <t:DataGridTextColumn
             CellContentFormat="{}{0: dd/MM/yyyy}"
             HeaderText="Date"
             PropertyName="Date" />
         <t:DataGridTextColumn HeaderText="Count" PropertyName="Count" />
         <t:DataGridTextColumn HeaderText="Type" PropertyName="Desc" />
     </t:RadDataGrid.Columns>
 </c:NDCDataGrid>

 

My NDCDataGrid is defined like this :

 

<t:RadDataGrid
    x:Class="NDC.Mobile.Controls.NDCDataGrid"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:t="http://schemas.telerik.com/2022/xaml/maui"
    AutoGenerateColumns="False"
    CanUserReorderColumns="False"
    SelectionMode="Single"
    SelectionUnit="Row"
    UserFilterMode="Disabled">
    <t:RadDataGrid.AlternateRowBackgroundStyle>
        <AppThemeBinding>
            <AppThemeBinding.Light>
                <t:DataGridBorderStyle
                    BackgroundColor="Beige"
                    BorderColor="Black"
                    BorderThickness="1" />
            </AppThemeBinding.Light>
            <AppThemeBinding.Dark>
                <t:DataGridBorderStyle
                    BackgroundColor="DimGray"
                    BorderColor="White"
                    BorderThickness="1" />
            </AppThemeBinding.Dark>
        </AppThemeBinding>
    </t:RadDataGrid.AlternateRowBackgroundStyle>
    <t:RadDataGrid.SelectionStyle>
        <AppThemeBinding>
            <AppThemeBinding.Light>
                <t:DataGridBorderStyle
                    BackgroundColor="LightGreen"
                    BorderColor="Black"
                    BorderThickness="1" />
            </AppThemeBinding.Light>
            <AppThemeBinding.Dark>
                <t:DataGridBorderStyle
                    BackgroundColor="DarkBlue"
                    BorderColor="White"
                    BorderThickness="1" />
            </AppThemeBinding.Dark>
        </AppThemeBinding>
    </t:RadDataGrid.SelectionStyle>
</t:RadDataGrid>

 

When loading a list of 900+ elements, the app crashes 


await Task.Run(async () =>
{
    DetailedData = new ObservableCollection<MyType>(await myService.Method());
});

 

MyType is defined like this :


   public int LocationName { get; set; }

   public int Count { get; set; }

   public DateTime Date { get; set; }

   public string Desc { get; set; }

 

Java.Lang.RuntimeException: 'Canvas: trying to draw too large(119964240bytes) bitmap.'

 

 	0xFFFFFFFFFFFFFFFF in Android.Runtime.RuntimeNativeMethods.monodroid_debugger_unhandled_exception	C#
 	0x1A in Android.Runtime.JNINativeWrapper._unhandled_exception at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:13,5	C#
 	0x1E in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:126,26	C#
 	0x17 in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw	C#
 	0x8C in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net7.0/JniEnvironment.g.cs:20830,5	C#
 	0x2D in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:93,6	C#
 	0xA6 in Android.Graphics.RecordingCanvas.DrawBitmap at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Graphics.RecordingCanvas.cs:161,5	C#
 	0x68 in SkiaSharp.Views.Android.SurfaceFactory.DrawSurface	C#
 	0xCB in SkiaSharp.Views.Android.SKCanvasView.OnDraw	C#
 	0x11 in Android.Views.View.n_OnDraw_Landroid_graphics_Canvas_ at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Views.View.cs:18998,4	C#
 	0x9 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:125,5	C#
 	0xF in Java.Interop.JniNativeMethods.CallNonvirtualBooleanMethodA at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net7.0/JniEnvironment.g.cs:18200,4	C#
 	0x73 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualBooleanMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net7.0/JniEnvironment.g.cs:20458,4	C#
 	0x8A in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualBooleanMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:164,7	C#
 	0x70 in Android.Views.ViewGroup.DrawChild at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Views.ViewGroup.cs:2839,5	C#
 	0x4 in Microsoft.Maui.Controls.Platform.Compatibility.ShellFlyoutRenderer.DrawChild at D:\a\_work\1\s\src\Controls\src\Core\Compatibility\Handlers\Shell\Android\ShellFlyoutRenderer.cs:172,4	C#
 	0x1C in Android.Views.ViewGroup.n_DrawChild_Landroid_graphics_Canvas_Landroid_view_View_J at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Views.ViewGroup.cs:2824,4	C#
 	0xD in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLLJ_Z at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:323,5	C#

The control is unusable in this state !

Thanks.

Jérôme
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 15 Mar 2024
1 answer
6 views
Using the SDKBrowser application to test, I'm not able to right-click inside any of the rich text editors on Windows to bring up the context menu. I tried setting AutoGenerateContextMenu = "True" but that didn't change anything. Maybe I'm misinterpreting the documentation but it seems like that property should enable right-clicking?
Didi
Telerik team
 answered on 14 Mar 2024
1 answer
3 views

Can I use FilterDescriptors with OR options?
Can you help me?

                this.FilterDescriptors.Add(new Telerik.Maui.Controls.Compatibility.DataControls.ListView.ListViewDelegateFilterDescriptor()
                {
                    Filter = new Func<object, bool>(
                        (item) => ((ListaTechnical)item).TagLogic.Contains(searchText) || 
                                  ((ListaTechnical)item).Equipment.Contains(searchText) ||
                                  ((ListaTechnical)item).Conjunto.Contains(searchText) ||
                                  ((ListaTechnical)item).Issues.Contains(searchText) ||
                                  )
                });

Regards,

Rodrigo.

 

Didi
Telerik team
 answered on 13 Mar 2024
1 answer
10 views

Hi,

I used this documentation:
https://docs.telerik.com/devtools/maui/knowledge-base/chart-multiple-axes

However, no good results were obtained.

â‘ The second axis appears to be misaligned.
â‘¡If possible, I would like to place the second axis to the left of the first axis.

Is there a solution to these?

Didi
Telerik team
 answered on 11 Mar 2024
1 answer
4 views

I tried to migrate xamarin agenda to Maui but i cant make it with dayview?? maybe some how i can remove the hours from the view?? 

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="AimmsApp.Task.Views.AgendaMenu"
             xmlns:resx="using:AimmsApp.Resources"
             xmlns:input="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
             xmlns:views="clr-namespace:AimmsApp.Task.Views;assembly=AimmsApp"
             Title="{x:Static resx:Resources.Agenda}">
    <AbsoluteLayout x:Name="mainLayout">
        <input:RadCalendar x:Name="calendar" ViewMode="Agenda" AppointmentsSource="{Binding Appointments}">

            <input:RadCalendar.AgendaViewSettings>
                <input:AgendaViewSettings MonthItemFormat="YYYY MMM"
                                          WeekItemStartDateFormat="dd MMMM"
                                          WeekItemEndDateFormat="dd"
                                          DayItemFormat="EEE d MMM"
                                          AppointmentItemTimeFormat="HH mm"
                                          AppointmentItemEndDateFormat="MMM d"
                                          AppointmentItemStartDateFormat="MMM d" 
                                          IsHeaderSticky="True" 
                />
            </input:RadCalendar.AgendaViewSettings>
            <input:RadCalendar.BindingContext>
                <views:CalendarView />
            </input:RadCalendar.BindingContext>

        </input:RadCalendar>
    </AbsoluteLayout>
</ContentPage>

Didi
Telerik team
 answered on 11 Mar 2024
1 answer
11 views

Hi!

It's possible to format or create a template for ChartTooltipBehavior?

Example:

TooltipTemplate="{StaticResource toolTipTemplate1}"

                        <telerik:RadCartesianChart.Resources>
                            <ResourceDictionary>
                                <DataTemplate x:Key="toolTipTemplate1">
                                    <VerticalStackLayout>
                                        <HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Fill" Spacing="0" Padding="3" Margin="0">
                                            <Label Text="{Binding Item.X, StringFormat='{0:F2}'}" TextColor="White"/>
                                            <Label Text=" "/>
                                            <Label Text="{Binding Path=BindingContext.AmplitudeUnit, Source={x:Reference graphicPage}}" TextColor="White"/>
                                            <Label Text=" | "/>
                                            <Label Text="{Binding Item.Y, StringFormat='{0:F2}'}" TextColor="White"/>
                                            <Label Text=" "/>
                                            <Label Text="{Binding Path=BindingContext.FrequencyUnit, Source={x:Reference graphicPage}}" TextColor="White"/>
                                        </HorizontalStackLayout>
                                    </VerticalStackLayout>
                                </DataTemplate>
                            </ResourceDictionary>
                        </telerik:RadCartesianChart.Resources>

 

Yana
Telerik team
 answered on 11 Mar 2024
1 answer
5 views

Hi!

Is it possible to put a title on the X and Y axes?

Example:

                            <telerik:NumericalAxis>
                                <telerik:NumericAxisX.Title>
                                    <telerik:AxisTitle Text="{Binding AmplitudeUnit}"/>
                                </telerik:NumericAxisX.Title>
                            </telerik:NumericalAxis>

Regards,

Rodrigo.

Yana
Telerik team
 answered on 11 Mar 2024
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?