Telerik Forums
UI for .NET MAUI Forum
3 answers
429 views

Im install VS v17.2.0 Preview 1.0 wich include .NET MAUI preview 13. Create new sample MAUI project.
Project is worked properly.
After add Telerik MAUI support. Project build failed with errors:

Severity Code Description Project File Line Suppression State
Error PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry. MauiApp2 D:\work\net\MauiApp2\MauiApp2\WINAPPSDKGENERATEPROJECTPRIFILE 1
Error PRI222: 0x80073b0f - Unspecified error occurred. MauiApp2 D:\work\net\MauiApp2\MauiApp2\WINAPPSDKGENERATEPROJECTPRIFILE 1

Solution attached..

Arkady
Top achievements
Rank 1
Iron
Iron
 answered on 12 May 2022
1 answer
244 views

Hi,

I tried to use two way binding to IsReadOnly="{Binding IsDirectoryReadOnly,Mode=TwoWay}"

But is not working .

Thanks,

  <telerikMauiControls:RadEntry Grid.Row="1" Grid.Column="1" x:Name="txtDirectory" Placeholder="Directory" WidthRequest="200" Text="{Binding DirectoryName, Mode=TwoWay}" ValidationErrorMessage="{Binding DirectoryValidationErrorMessage, Mode=TwoWay}" IsValueValid="{Binding DirectoryIsValueValid, Mode=TwoWay}" 
                                                      IsReadOnly="{Binding IsDirectoryReadOnly,Mode=TwoWay}" ClearButtonVisibility="Never"/>
                    


Didi
Telerik team
 answered on 12 May 2022
1 answer
126 views

Hi,

What i need to do in order to move to RC3?

Thanks,

Lance | Senior Manager Technical Support
Telerik team
 answered on 11 May 2022
0 answers
180 views

Hi,

Can you please check if it reproduce in your side also ?

I'm using Version 17.2.0 Preview 5.0.

Thanks in advance,

Daniel
Top achievements
Rank 1
Silver
Bronze
 asked on 11 May 2022
1 answer
365 views

Hi,

This code in ListViewTemplateCell.View is not seen.

      <telerikMauiControls:RadEntry Grid.Row="0" Grid.Column="1" Text="{Binding Capacity}"  VerticalOptions="Center" IsReadOnly="True" TextColor="{DynamicResource PrimaryColor}"/>
                                  

  <VerticalStackLayout Grid.Row="0"  Margin="10">
            <Label Text="Rules" Margin="10"/>
            <telerikDataControls:RadListView ItemsSource="{Binding RulesSource, Mode=TwoWay}" x:Name="rulesListView" VerticalScrollBarVisibility="Always"
                                   GroupHeaderTemplate="{StaticResource ListViewGroupHeaderTemplate}"
                                   GroupHeaderStyle="{StaticResource ListViewGroupHeaderStyle}"
                                             >
              
                </telerikDataControls:RadListView.ReorderItemStyle>
                <telerikDataControls:RadListView.GroupDescriptors>
                    <telerikListView:PropertyGroupDescriptor PropertyName="Portal" />
                </telerikDataControls:RadListView.GroupDescriptors>
                 <telerikDataControls:RadListView.ItemTemplate>
                    <DataTemplate>
                        <telerikListView:ListViewTemplateCell>
                            <telerikListView:ListViewTemplateCell.View>
                                <telerik:RadBorder  BorderColor="{DynamicResource PrimaryColor}" BorderThickness="1"   VerticalOptions="Center" CornerRadius="5" Margin="5" >
                                    <Grid HeightRequest="200" RowSpacing="10" RowDefinitions="auto, auto, auto, auto, auto" ColumnSpacing="10" ColumnDefinitions="auto, auto, auto, auto" HorizontalOptions="Start" VerticalOptions="Center">
                                        <Label Grid.Row="0" Grid.Column="0" Text="*Capacity (Mega):"  VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5" HorizontalOptions="Start"/>
                                        <telerikMauiControls:RadEntry Grid.Row="0" Grid.Column="1" Text="{Binding Capacity}"  VerticalOptions="Center" IsReadOnly="True" TextColor="{DynamicResource PrimaryColor}"/>
                                        <Label Grid.Row="0" Grid.Column="2" Text="*Capacity in used (Mega):" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="0" Grid.Column="3" Text="{Binding CapacityUsed}"  VerticalOptions="Center" />

                                   

                                    </Grid>
                                </telerik:RadBorder>
                            </telerikListView:ListViewTemplateCell.View>
                        </telerikListView:ListViewTemplateCell>
                    </DataTemplate>
                </telerikDataControls:RadListView.ItemTemplate>
                <telerikDataControls:RadListView.LayoutDefinition>
                    <telerikListView:ListViewLinearLayout ItemLength="200" />
                </telerikDataControls:RadListView.LayoutDefinition>
            </telerikDataControls:RadListView>
          
        </VerticalStackLayout>

Lance | Senior Manager Technical Support
Telerik team
 answered on 10 May 2022
1 answer
103 views

Hi, 

I noticed that a disabled checkbox is still working an Android. The Windows build seems to be correct.

See attached screenshots.

To replicate, create a new MAUI app, then replace MainPage.xaml with this:


<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.Maui.Controls.Compatibility"
             xmlns:telerikChart="clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.Maui.Controls.Compatibility"
             xmlns:telerikListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.Maui.Controls.Compatibility"
             xmlns:primitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.Maui.Controls.Compatibility"
             x:Class="MauiApp1.MainPage">

    <VerticalStackLayout Spacing="8" Padding="8">
        <primitives:RadCheckBox IsCheckedChanged="RadCheckBox_IsCheckedChanged" HorizontalOptions="Start"/>
        <primitives:RadCheckBox x:Name="Cb2" IsEnabled="False" HorizontalOptions="Start"/>
    </VerticalStackLayout>
</ContentPage>


And MainPage.xaml.cs with


namespace MauiApp1;

public partial class MainPage : ContentPage
{
	public MainPage()
	{
		InitializeComponent();
	}

    private void RadCheckBox_IsCheckedChanged(object sender, Telerik.XamarinForms.Primitives.CheckBox.IsCheckedChangedEventArgs e)
    {
        Cb2.IsEnabled = true;
    }
}

The second checkbox should be disabled after start of the application.

Regards
Martin

Didi
Telerik team
 answered on 05 May 2022
1 answer
105 views

Hi,

 I see Telerik 8 available(is it rc2?) ,I used 7.

What I need to do in order to move to this new version  ?, to update vs ?

Thanks,

 

Yana
Telerik team
 answered on 02 May 2022
1 answer
351 views

Hi,

I'm working on a MAUI application for Android (VS 2022 17.2 Update 5, Telerik Maui 0.8).

I'm trying to use a RadCartesianChart. The data I'm binding uses child objects and that throws an NullReferenceExeption on Android but works fine on Windows. I'm not sure if this a MAUI issue or a Telerik issue.

To replicate, create a new MAUI app. Then replace MainPage.xaml with this code (slightly modified from your documentation):

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.Maui.Controls.Compatibility"
             xmlns:telerikChart="clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.Maui.Controls.Compatibility"
             xmlns:telerikListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.Maui.Controls.Compatibility"
             x:Class="MauiApp1.MainPage">

    <telerikChart:RadCartesianChart MinimumHeightRequest="300">

        <telerikChart:RadCartesianChart.HorizontalAxis>
            <telerikChart:NumericalAxis LabelFitMode="MultiLine" />
        </telerikChart:RadCartesianChart.HorizontalAxis>

        <telerikChart:RadCartesianChart.VerticalAxis>
            <telerikChart:NumericalAxis />
        </telerikChart:RadCartesianChart.VerticalAxis>

        <telerikChart:RadCartesianChart.Series>
            <telerikChart:ScatterSplineSeries XValueBinding="NumericalData.XData" YValueBinding="NumericalData.YData" ItemsSource="{Binding Data1}" />

            <telerikChart:ScatterSplineSeries XValueBinding="XData" YValueBinding="YData" ItemsSource="{Binding Data2}" />
        </telerikChart:RadCartesianChart.Series>
    </telerikChart:RadCartesianChart>
</ContentPage>

And MainPage.xaml.cs with this code:

namespace MauiApp1;

using System.Collections.ObjectModel;

public partial class MainPage : ContentPage
{
	public MainPage()
	{
		InitializeComponent();
		Data1 = GetNumericData1();
		Data2 = GetNumericData2();
		BindingContext = this;
	}

	public ObservableCollection<Item> Data1 { get; set; }
	public ObservableCollection<NumericalData> Data2 { get; set; }


	public static ObservableCollection<Item> GetNumericData1()
	{
		var data = new ObservableCollection<Item>
	{
		new Item { NumericalData = new NumericalData { XData = 2, YData = 13 } },
		new Item { NumericalData = new NumericalData { XData = 19, YData = 31 } },
		new Item { NumericalData = new NumericalData { XData = 22, YData = 33 } },
		new Item { NumericalData = new NumericalData { XData = 28, YData = 35 } },
		new Item { NumericalData = new NumericalData { XData = 33, YData = 46 } },
		new Item { NumericalData = new NumericalData { XData = 38, YData = 34 } },
		new Item { NumericalData = new NumericalData { XData = 49, YData = 66 } },
		new Item { NumericalData = new NumericalData { XData = 55, YData = 24 } },
		new Item { NumericalData = new NumericalData { XData = 62, YData = 41 } },
	};
		return data;
	}
	public static ObservableCollection<NumericalData> GetNumericData2()
	{
		var data = new ObservableCollection<NumericalData>
	{
		new NumericalData { XData = 7, YData = 13 },
		new NumericalData { XData = 19, YData = 17 },
		new NumericalData { XData = 22, YData = 19 },
		new NumericalData { XData = 28, YData = 21 },
		new NumericalData { XData = 33, YData = 35 },
		new NumericalData { XData = 38, YData = 43 },
		new NumericalData { XData = 49, YData = 15 },
		new NumericalData { XData = 55, YData = 21 },
		new NumericalData { XData = 62, YData = 47 },
	};
		return data;
	}
}


public class NumericalData
{
	public double XData { get; set; }
	public double YData { get; set; }
}

public class Item
{
	public NumericalData NumericalData { get; set; }
}

 

Regards
Martin

Lance | Senior Manager Technical Support
Telerik team
 answered on 29 Apr 2022
1 answer
167 views

I've been developing a system using .Net Maui platform, VS2022 preview and Telerik UI for Maui (0.70.0).  Telerik Maui controls were working well until I updated VS2022 to version 17.2.0 preview 5. There are no dependency errors but when I build the application I get a generic "Object reference not set to an instance of an object" error on every xaml file that contains a telerik control. if I remove the control(s) from the xaml file it build without issues. 

 

Thanks for your support!

Roger

Roger
Top achievements
Rank 1
 answered on 29 Apr 2022
1 answer
392 views

Hi,

It possible to hide The X buttton , I need when I  used pick folder and RadEntry is read-only.

 <telerikMauiControls:RadEntry 

Thanks,

Didi
Telerik team
 answered on 28 Apr 2022
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?