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

Cannot run MAUI sample project in VS 2022 preview 17.2.0 preview 1.0, getting error in every  call to InitializeComponent() in xaml code behind class.

https://docs.telerik.com/devtools/maui/demos-and-sample-apps/maui-demo-app

Is there online demo sample to run in browser?

 

 

 

3 answers
1.7K+ views

Hallo,

I would like to use MAUI TabView. How to do the style (incl. icon like. e.g. Segoe MDL2 Assets icons) for HeaderText?

Is there any DataTemplate for the HeaderText? How to do the Binding for HeaderText?

Is it possible to load the add the "new Tab" and "Tab content" dynamically?

 

Regards,

JT

Palmsenser
Top achievements
Rank 1
 answered on 18 Feb 2022
2 answers
495 views
I have DataGrid template column. As SortDescriptor i'm use DelegateSortDescriptor. Seted SortOrder="Descending". When i start app i want that this column was sorted descending. Now when app started column is not sorted. When i click on header then column sorted properly.
...
                    <telerikDataGrid:DataGridTemplateColumn HeaderText="Name" HeaderStyle="{StaticResource DataGridHeaderStyle}"
                                                            CanUserSort="True"
                                                        >
                        <telerikDataGrid:DataGridTemplateColumn.SortDescriptor>
                            <telerikCommon:DelegateSortDescriptor KeyLookup="{StaticResource FileInfoExKeyLookup}" SortOrder="Descending" />
                        </telerikDataGrid:DataGridTemplateColumn.SortDescriptor>
...
                        <telerikDataGrid:DataGridColumn.CellContentTemplate>
                            <DataTemplate>
                                <HorizontalStackLayout Margin="5,5">
                                    <Label Text="{Binding Path=IconInfo.Code}" Style="{StaticResource FontAwesome}" FontSize="Medium" TextColor="{Binding Path=IconInfo.Color}"
                                            HorizontalOptions="Center" VerticalOptions="Center"/>
                                    <Label Text="{Binding ESFileInfo.fileName}" Style="{StaticResource PrimaryLabel}" Margin="5"
                                       HorizontalOptions="Start" VerticalOptions="Center"
                                       VerticalTextAlignment="Center"
                                       />
                                </HorizontalStackLayout>
                            </DataTemplate>
                        </telerikDataGrid:DataGridColumn.CellContentTemplate>
Didi
Telerik team
 updated answer on 17 Feb 2022
1 answer
1.7K+ views

Hi,

Was testing a MAUI app with Teleirk controls for MAUI and works fine on Android but when trying to run on iOS I get an Exception before its even deployed to the simulator. The error is "Severity Code Description Project File Line Suppression State Error MT7091 File 'C:/Users/DanielEvans/.nuget/packages/skiasharp.nativeassets.ios/2.88.0-preview.187/runtimes/ios/native/libSkiaSharp.framework/libSkiaSharp' is not a valid framework: Could not find a part of the path "/Users/danielevans/Library/Caches/Xamarin/mtbs/builds/EventApp/9f4ead0cad4fb87ccfeeeb8ad0da7fa57ca3f4b213dfcc8c083d36d8a3f9ca42/C:/Users/DanielEvans/.nuget/packages/skiasharp.nativeassets.ios/2.88.0-preview.187/runtimes/ios/native/libSkiaSharp.framework/libSkiaSharp". EventApp C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\15.2.200-preview.12.4\targets\Xamarin.Shared.Sdk.targets 616 "

Any ideas?

Kind regards,

 

Dan

Lance | Senior Manager Technical Support
Telerik team
 answered on 10 Feb 2022
1 answer
645 views
MAUI DataGrid don't have row unit, only cell.
When i try apply template for cell then vertical alignment not working.
For column Name using template bellow. For Modified Date using default.
                        <telerikDataGrid:DataGridColumn.CellContentTemplate>
                            <DataTemplate>
                                <Label Text="{Binding fileName}" Style="{StaticResource PrimaryLabel}"
                                       HeightRequest="40"
                                       HorizontalOptions="Start" VerticalOptions="Center"
                                       VerticalTextAlignment="Center"
                                       />
                            </DataTemplate>
                        </telerikDataGrid:DataGridColumn.CellContentTemplate>
Nasko
Telerik team
 answered on 09 Feb 2022
1 answer
329 views

I create new MAUI project in VS 2012 Preview 5 (MAUI Preview 12).
Add Telerik MAUI 0.4 package.
Add to MainPage BusyIndicator control.
App runing and work properly.
I try add DI support. Modify app and run. Then got error.
When i comment BusyIndicator control in MainPage.xaml then app work properly.
Sample project and error attached.

Some Telerik MAUI controls work properly (e.g. RadBorder, RadButton, RadListView)

Petar Marchev
Telerik team
 answered on 04 Feb 2022
1 answer
2.6K+ views

Hey

I try to measure the size of a control, when I prefill it with values.
Therefor, I tested with the Microsoft Edit Control, which gives me the correct value, when I do the following code snipset:
   

            Editor locEditor = new();
            locEditor.Text = "TEST";
            locEditor.FontFamily = this.FontFamily;
            locEditor.FontSize = this.FontSize;
            locEditor.ToNative(this.Handler.MauiContext);
            var locSize = locEditor.Handler.GetDesiredSize(double.PositiveInfinity, double.PositiveInfinity);
            locEditor = null;
Variable locSize has the height and width of the control

RadNumericMaskedEntry locEditor = new();
            locEditor.Value = "TEST";
            locEditor.Handler = this.Handler;
            // - Not working: var locSize = locEditor.Handler.GetDesiredSize(double.PositiveInfinity, double.PositiveInfinity);
            // - Not working: var locSize = locEditor.CrossPlatformMeasure(double.PositiveInfinity, double.PositiveInfinity);
            //- Not working:  var locSize = locEditor.Measure(double.PositiveInfinity, double.PositiveInfinity).Request;
            locEditor = null;
           

 

But when I try to use the RadNumeric, the size always returns 0


What could this be? 

THX a lot in advance



Antoan
Telerik team
 answered on 13 Jan 2022
0 answers
697 views

Hi,

I am having an issue with the MAUI controls. When the page calls the InitializeComponent an error is thrown:

{System.IO.FileNotFoundException: 
File name: 'Telerik.Maui.Controls.Compatibility.resources'
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
   at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(Assembly assembly, CultureInfo culture, Version version, Boolean throwOnFileNotFound)}

 

Any help would be appreciated.

It happens only when this part of the code is in the page, and on Android only. It works on Windows.


        <telerikDataGrid:RadDataGrid
                Grid.Row="2"
                ItemsSource="{Binding StockDropsMessages}"
                AutoGenerateColumns="False"
                MaximumHeightRequest="200">
            <telerikDataGrid:RadDataGrid.Columns>
                <telerikDataGrid:DataGridTextColumn PropertyName="Content" HeaderText="StockDrops Messages" />
            </telerikDataGrid:RadDataGrid.Columns>
        </telerikDataGrid:RadDataGrid>

        <telerikDataGrid:RadDataGrid
                Grid.Row="3"
                ItemsSource="{Binding FilterMessages}"
                AutoGenerateColumns="False"
                MaximumHeightRequest="200">
            <telerikDataGrid:RadDataGrid.Columns>
                <telerikDataGrid:DataGridTextColumn PropertyName="Content" HeaderText="Recently Filtered" />
            </telerikDataGrid:RadDataGrid.Columns>
        </telerikDataGrid:RadDataGrid>

Thanks!



Enrique
Top achievements
Rank 1
 updated question on 28 Nov 2021
1 answer
572 views

Hi

our interest is using MAUI to host Blazor apps for OS functionality like file acces. We have not been able to find out if xcopy style deployment (usage inside organisation network) is / will be definitively made available like in WinForm. 

Anybody have information about that.

Thanks in advance

Rosi
Telerik team
 answered on 11 Nov 2021
1 answer
186 views

Hi, 

I am trying to run the `SDKBrowserMaui` Example locally and `UseTelerik()` function is throwing the below error. I also tried to use `Telerik UI for Maui` in my test project following this documentation TelerikUI and landed in the same issue. Is something changed? Any help is much appreciated.

Lance | Senior Manager Technical Support
Telerik team
 answered on 14 Oct 2021
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?