Telerik Forums
UI for .NET MAUI Forum
1 answer
173 views
I was trying to have a Popup attached to a button on the page toolbar (iOS).  The page crashes when doing this.  Is this possible?
Elena
Telerik team
 answered on 12 Dec 2024
0 answers
159 views

Dear all,

After added Telerik Theming to my project by using  <UseTelerikTheming>true</UseTelerikTheming> then rebuild my project --> It's OK.

But for the next rebuild - It's alwayls fails with error messages like 'The name 'InitializeComponent' does not exist in the current context' for all files in TelerikTheming folder.

How can I resolse this misktake now?

Thank alots.

 

 

Le
Top achievements
Rank 1
Iron
 asked on 11 Dec 2024
1 answer
604 views

We recently discovered that our .NET MAUI APP (8.0.92) throws a Java.Lang.RuntimeException with Font asset not found /data/user/0/app.xyz/cache/telerikfont.ttf.

Here's the full exception detail:

Java.Lang.RuntimeException:
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Java.Interop.JniEnvironment+StaticMethods.CallStaticObjectMethod (Java.Interop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065)
   at Java.Interop.JniPeerMembers+JniStaticMethods.InvokeObjectMethod (Java.Interop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065)
   at Android.Graphics.Typeface.CreateFromAsset (Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065)
   at Microsoft.Maui.FontManager.LoadTypefaceFromAsset (Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)

 

We do have a "Font" folder in our Application, but in our understanding this shouldn't be a problem anymore.

We register those fonts, which are in the Fonts folder:

.ConfigureFonts(fonts =>
{
	fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
	fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
	fonts.AddFont("FontAwesomePro-Light-300.otf", "FontAwesomeLight");
	fonts.AddFont("FontAwesomePro-Regular-400.otf", "FontAwesomeRegular");
	fonts.AddFont("FontAwesomePro-Solid-900.otf", "FontAwesomeSolid");
});


In addition to that, we have a custom CustomFontsProvider for the fonts we use in the RadPdfProcessing lib for .NET MAUI. Those fonts are however in the RAW.


public class CustomFontsProvider : Telerik.Windows.Documents.Extensibility.FontsProviderBase

{ public override byte[] GetFontData(Telerik.Windows.Documents.Core.Fonts.FontProperties fontProperties) { string fontFileName = fontProperties.FontFamilyName + ".ttf"; if (fontProperties.FontFamilyName == "Verdana") { if (fontProperties.FontStyle == FontStyles.Normal && fontProperties.FontWeight == FontWeights.Normal) { fontFileName = $"Verdana.ttf"; } elseif (fontProperties.FontWeight == FontWeights.Bold) { fontFileName = $"Verdana-Bold.ttf"; } } var fileStream = FileSystem.Current.OpenAppPackageFileAsync(fontFileName).GetAwaiter().GetResult(); var memoryStream = new MemoryStream(); fileStream.CopyTo(memoryStream); return memoryStream.ToArray(); } }

 

How can we resolve this issue? Any support is appreciated.

 

Didi
Telerik team
 updated answer on 10 Dec 2024
0 answers
218 views

Hi,

After upgrading my MAUI application to .NET 9 and installing Telerik.UI.for.Maui 8.0, I've noticed an issue with DataGrid :

Here is a repro project : GitHub

- Start the app

- Go to Options

- Go to Third Page (DataGrid shows up)

- Go back to Options

- Go to Third Page again (DataGrid disappears...)

It was working with .Net 8 and Telerik.UI.for.Maui 7.0

A fix would be appreciated.

 

Jérôme
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 09 Dec 2024
0 answers
191 views

Hi,

After upgrading my MAUI application to .NET 9 and installing Telerik.UI.for.Maui 8.0, RadListPicker doesn't respect app theme when it's set to dark mode.

 

It was working with .Net 8 and Telerik.UI.for.Maui 7.0

 

 

A fix would be appreciated.

Jérôme
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 09 Dec 2024
0 answers
150 views

I am using TabView with few Input lines (used for settings) on each tab.  I use RadNumericalInput (have also tried RadEntry) as the Input Control.

When I focus an entry on the first tab, the On Screen Keyboard shows up and the screen moves up so that the Input Control is visible while I type in the value.

When I do the same on the second, or the third tab, the screen does not move, and the Input Control is hidden behind the keyboard.

Is this a bug, or is there a way to correct this.

Hal Einarsson.

Hal
Top achievements
Rank 1
 asked on 02 Dec 2024
1 answer
128 views

Hi,

Are you able to provide the default control templates for the RadListPicker so that I can tweak them?

On Android the underline border is too far below the text and does not give a consistent look and feel compared to native controls.

Regards

Anthony

Yana
Telerik team
 answered on 02 Dec 2024
1 answer
153 views

What im basically looking for is a solution for another gesture in addition to regular tap. (on an appointment).

Its split into 2 different options:
1.  (Bug)

Using existing AppointmentDoubleTap event 

I tried this but appearantly when using both events (regular and double tap) - the regular tap will immedietly be executed and so the doubleTap is never accessible.

 

2. (Request - preferably)

To add an option for a long press event on an appointment...
This is what i had in Xamarin and this is what i would ideally want here as well.

 

PS

Before suggesting - I did try to use CommunityToolkit behaviors for longPress but when its added to my appointment DataTemplate in the Xaml - the appointments do not appear, probably some conflict with Teleriks...

Yana
Telerik team
 answered on 02 Dec 2024
0 answers
78 views

Hi Team,

I am using Raddatepicker where the dropdown icon is visiblefor the control. how to remove that.

Thanks,

Mohammed Rameez Raza (Rameez) 

Mohammed Rameez
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 27 Nov 2024
1 answer
395 views
When im trying to load information to a list view in my page sometimes this crashes and this is the error that i gave, trying with the native listview the error doesn't happen

Error:

{ObjCRuntime.ObjCException: Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: Invalid batch updates detected: the number of sections and/or items returned by the data source before and after performing the batch updates are inconsistent with the updates.

Data source before updates = { 3 sections with item counts: [30, 6, 2] }

Data source after updates = { 3 sections with item counts: [30, 6, 2] }

Updates = [

Insert item (0 - 15),

Insert item (0 - 16),

Insert item (0 - 17),

Insert item (0 - 18),

Insert item (0 - 19),

Insert item (0 - 20),

Insert item (0 - 21),

Insert item (0 - 22),

Insert item (0 - 23),

Insert item (0 - 24),

Insert item (0 - 25),

Insert item (0 - 26),

Insert item (0 - 27),

Insert item (0 - 28),

Insert item (0 - 29),

Insert item (1 - 3),

Insert item (1 - 4),

Insert item (1 - 5),

Insert item (2 - 1)

]

Collection view: <TKCollectionView: 0x1237b3200; baseClass = UICollectionView; frame = (0 0; 350 400); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600000d933c0>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x60000435c160>; contentOffset: {0, 0}; contentSize: {350, 1365.6666666666667}; adjustedContentInset: {0, 0, 0, 0}; layout: <TKListViewLinearLayout: 0x1329186b0>; dataSource: <Telerik_Maui_Controls_Compatibility_DataControlsRenderer_iOS_TKExtendedListView: 0x123e59480; frame = (0 0; 350 400); hidden = YES; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x60000435c420>>>

Native stack trace:

0   CoreFoundation                      0x00000001804b70ec __exceptionPreprocess + 172

1   libobjc.A.dylib                     0x000000018008ede8 objc_exception_throw + 72

2   Foundation                          0x0000000180e73aa8 _userInfoForFileAndLine + 0

3   UIKitCore                           0x00000001851c27a8 -[UICollectionView _Bug_Detected_In_Client_Of_UICollectionView_Invalid_Batch_Updates:] + 92

4   UIKitCore                           0x00000001851c2118 -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:collectionViewAnimator:] + 10296

5   UIKitCore                           0x00000001851beb18 -[UICollectionView _updateRowsAtIndexPaths:updateAction:updates:] + 448

6   UIKitCore                           0x00000001851bec74 -[UICollectionView insertItemsAtIndexPaths:] + 52

7   InbrosApp                           0x000000010432733c -[TKCollectionView insertItemsAtIndexPaths:] + 124

8   InbrosApp                           0x0000000104318dcc __38-[TKListView insertItemsAtIndexPaths:]_block_invoke + 68

9   UIKitCore                           0x0000000186012478 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 496

10  UIKitCore                           0x0000000186012a70 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:] + 48

11  InbrosApp                           0x0000000104318d14 -[TKListView insertItemsAtIndexPaths:] + 308

12  libxamarin-dotnet-debug.dylib       0x00000001053f4c9c xamarin_dyn_objc_msgSendSuper + 164

13  libmonosgen-2.0.dylib               0x0000000105bf4abc do_icall + 200

14  libmonosgen-2.0.dylib               0x0000000105bf33d0 do_icall_wrapper + 356

15  libmonosgen-2.0.dylib               0x0000000105be7e20 mono_interp_exec_method + 2836

16  libmonosgen-2.0.dylib               0x0000000105be5088 interp_entry_from_trampoline + 548

17  InbrosApp                           0x0000000104345a18 native_to_interp_trampoline + 104

18  libdispatch.dylib                   0x0000000180178de0 _dispatch_client_callout + 16

19  libdispatch.dylib                   0x0000000180187c60 _dispatch_main_queue_drain + 1272

20  libdispatch.dylib                   0x0000000180187758 _dispatch_main_queue_callback_4CF + 40

21  CoreFoundation                      0x000000018041ae3c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12

22  CoreFoundation                      0x0000000180415534 __CFRunLoopRun + 1944

23  CoreFoundation                      0x0000000180414960 CFRunLoopRunSpecific + 536

24  GraphicsServices                    0x0000000190183b10 GSEventRunModal + 160

25  UIKitCore                           0x0000000185aa2b40 -[UIApplication _run] + 796

26  UIKitCore                           0x0000000185aa6d38 UIApplicationMain + 124

27  libxamarin-dotnet-debug.dylib       0x00000001053aff00 xamarin_UIApplicationMain + 60

28  libmonosgen-2.0.dylib               0x0000000105bf4b30 do_icall + 316

29  libmonosgen-2.0.dylib               0x0000000105bf33d0 do_icall_wrapper + 356

30  libmonosgen-2.0.dylib               0x0000000105be7e20 mono_interp_exec_method + 2836

31  libmonosgen-2.0.dylib               0x0000000105be59c0 interp_runtime_invoke + 244

32  libmonosgen-2.0.dylib               0x0000000105afec64 mono_jit_runtime_invoke + 1116

33  libmonosgen-2.0.dylib               0x0000000105cb9d10 mono_runtime_invoke_checked + 148

34  libmonosgen-2.0.dylib               0x0000000105cc12f0 mono_runtime_exec_main_checked + 116

35  libmonosgen-2.0.dylib               0x0000000105b52eec mono_jit_exec + 364

36  libxamarin-dotnet-debug.dylib       0x00000001053f3b00 xamarin_main + 2320

37  InbrosApp                           0x000000010435d0c0 main + 72

38  dyld                                0x0000000104771410 start_sim + 20

39  ???                                 0x00000001044b2274 0x0 + 4367000180

 

   at TelerikUI.TKListView.InsertItems(NSIndexPath[] indexPaths)

   at Telerik.Maui.Controls.Compatibility.DataControlsRenderer.iOS.ListViewBatchUpdates.ApplyChanges()

   at Telerik.Maui.Controls.Compatibility.DataControlsRenderer.iOS.TKExtendedListView.<ScheduleBatchUpdates>b__44_0()

   at Microsoft.Maui.Dispatching.Dispatcher.<>c__DisplayClass10_0.<DispatchDelayedImplementation>b__0()

   at CoreFoundation.DispatchQueue.static_dispatcher_to_managed(IntPtr context) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/CoreFoundation/Dispatch.cs:line 379

   at UIKit.UIApplication.UIApplicationMain(Int32 , String[] , IntPtr , IntPtr ) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 58

   at UIKit.UIApplication.Main(String[] , Type , Type ) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94

   at InbrosApp.Program.Main(String[] args) in /Users/carminamoreno/Documents/GitHub/Inbros/InbrosApp/Platforms/iOS/Program.cs:line 13

Native stack trace:

0   CoreFoundation                      0x00000001804b70ec __exceptionPreprocess + 172

1   libobjc.A.dylib                     0x000000018008ede8 objc_exception_throw + 72

2   Foundation                          0x0000000180e73aa8 _userInfoForFileAndLine + 0

3   UIKitCore                           0x00000001851c27a8 -[UICollectionView _Bug_Detected_In_Client_Of_UICollectionView_Invalid_Batch_Updates:] + 92

4   UIKitCore                           0x00000001851c2118 -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:collectionViewAnimator:] + 10296

5   UIKitCore                           0x00000001851beb18 -[UICollectionView _updateRowsAtIndexPaths:updateAction:updates:] + 448

6   UIKitCore                           0x00000001851bec74 -[UICollectionView insertItemsAtIndexPaths:] + 52

7   InbrosApp                           0x000000010432733c -[TKCollectionView insertItemsAtIndexPaths:] + 124

8   InbrosApp                           0x0000000104318dcc __38-[TKListView insertItemsAtIndexPaths:]_block_invoke + 68

9   UIKitCore                           0x0000000186012478 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 496

10  UIKitCore                           0x0000000186012a70 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:] + 48

11  InbrosApp                           0x0000000104318d14 -[TKListView insertItemsAtIndexPaths:] + 308

12  libxamarin-dotnet-debug.dylib       0x00000001053f4c9c xamarin_dyn_objc_msgSendSuper + 164

13  libmonosgen-2.0.dylib               0x0000000105bf4abc do_icall + 200

14  libmonosgen-2.0.dylib               0x0000000105bf33d0 do_icall_wrapper + 356

15  libmonosgen-2.0.dylib               0x0000000105be7e20 mono_interp_exec_method + 2836

16  libmonosgen-2.0.dylib               0x0000000105be5088 interp_entry_from_trampoline + 548

17  InbrosApp                           0x0000000104345a18 native_to_interp_trampoline + 104

18  libdispatch.dylib                   0x0000000180178de0 _dispatch_client_callout + 16

19  libdispatch.dylib                   0x0000000180187c60 _dispatch_main_queue_drain + 1272

20  libdispatch.dylib                   0x0000000180187758 _dispatch_main_queue_callback_4CF + 40

21  CoreFoundation                      0x000000018041ae3c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12

22  CoreFoundation                      0x0000000180415534 __CFRunLoopRun + 1944

23  CoreFoundation                      0x0000000180414960 CFRunLoopRunSpecific + 536

24  GraphicsServices                    0x0000000190183b10 GSEventRunModal + 160

25  UIKitCore                           0x0000000185aa2b40 -[UIApplication _run] + 796

26  UIKitCore                           0x0000000185aa6d38 UIApplicationMain + 124

27  libxamarin-dotnet-debug.dylib       0x00000001053aff00 xamarin_UIApplicationMain + 60

28  libmonosgen-2.0.dylib               0x0000000105bf4b30 do_icall + 316

29  libmonosgen-2.0.dylib               0x0000000105bf33d0 do_icall_wrapper + 356

30  libmonosgen-2.0.dylib               0x0000000105be7e20 mono_interp_exec_method + 2836

31  libmonosgen-2.0.dylib               0x0000000105be59c0 interp_runtime_invoke + 244

32  libmonosgen-2.0.dylib               0x0000000105afec64 mono_jit_runtime_invoke + 1116

33  libmonosgen-2.0.dylib               0x0000000105cb9d10 mono_runtime_invoke_checked + 148

34  libmonosgen-2.0.dylib               0x0000000105cc12f0 mono_runtime_exec_main_checked + 116

35  libmonosgen-2.0.dylib               0x0000000105b52eec mono_jit_exec + 364

36  libxamarin-dotnet-debug.dylib       0x00000001053f3b00 xamarin_main + 2320

37  InbrosApp                           0x000000010435d0c0 main + 72

38  dyld                                0x0000000104771410 start_sim + 20

39  ???                                 0x00000001044b2274 0x0 + 4367000180

}




Didi
Telerik team
 answered on 26 Nov 2024
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?