Telerik Forums
UI for .NET MAUI Forum
2 answers
774 views

ENV: Maui workload 6.0.312 with Telerik UI for .NET MAUI 1.0.1

#1: Dose RadComboBox the support insert a icon as placeholder and input validation as below in the future roadmap?

#2 the bordercolor doesn't work (tried in TelerikSample app as well), what do I miss for this bordercolor setting?

also tried the Maui workload 6.0.400 with Telerik UI for .NET MAUI 2.0.0
<telerik:RadComboBox SelectionMode="Multiple" IsEditable="True" BorderColor="Green" BorderThickness="3"
                     DropDownBorderColor="Blue"
                     DropDownBorderThickness="2"
                     DropDownCornerRadius="5"
                     DropDownBackgroundColor="LightBlue">
                <telerik:RadComboBox.ItemsSource>
                    <x:Array Type="{x:Type x:String}">
                        <x:String>USA</x:String>
                        <x:String>Uganda</x:String>
                        <x:String>Ukraine</x:String>
                        <x:String>Canada</x:String>
                        <x:String>France</x:String>
                        <x:String>Italy</x:String>
                        <x:String>United Kingdom</x:String>
                        <x:String>China</x:String>
                        <x:String>Japan</x:String>
                    </x:Array>
                </telerik:RadComboBox.ItemsSource>
            </telerik:RadComboBox>

Antoan
Telerik team
 answered on 29 Jul 2022
1 answer
321 views
Hi,

I want to get the data through the viewmodel, sort the data multiple times, and render to the ui correctly according to the order of the data.

can i do it?

the code please refer to images.

eg: Grouping by Index,and OrderBy Index,Then Orderby Country.

thanks.
Antoan
Telerik team
 answered on 28 Jul 2022
1 answer
498 views

Hey Team,

I want to create a Custom ListView which is inherited from RadListView Directly. Is there a way to Implement it? 

I did a way but failed:

<?xml version="1.0" encoding="utf-8" ?>
<telerik:RadListView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
                        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                     xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
                     x:Class="Text.ListViews.TelerikListView">
</telerik:RadListView>
using Telerik.UI.Xaml.Controls.Data;

namespace Text.ListViews
{
    public partial class TelerikListView : RadListView
    {
        public TelerikListView()
        {
            InitializeComponent();
        }
    }
}

It gives me a error:

 

Thanks

Allen

Didi
Telerik team
 answered on 21 Jul 2022
1 answer
388 views

<telerik:RadListView  x:Name="listView" ItemsSource="{Binding Items}" />

RadListView control  add EmptyView property, For example

<CollectionView ItemsSource="{Binding EmptyMonkeys}"
                EmptyView="No items to display" />
link:Define an EmptyView for a CollectionView
Didi
Telerik team
 updated answer on 18 Jul 2022
1 answer
236 views

Hey Team,

I was trying to build a MAUI Multi-Window App with Telerik listView project. It always crashed when ran on MAC , but it works on Windows.

Error  Message: Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'

I just setup multi-window with the instructions here: https://docs.microsoft.com/en-us/dotnet/maui/fundamentals/windows

But If I remove configuration( Info.plist and SceneDelegate.cs). then it works on Mac.

I attached a simple project. 

MAUI: 6.0.312; DotNet SDK: 6.0.300; Telerik.UI.for.MAUI.trial 1.0.1

Is that any way to handle this issue? 

And I'm also wondering is there any other component(s) have this issue?

 

Thanks

Allen 

 

 

Didi
Telerik team
 answered on 18 Jul 2022
1 answer
612 views

I have been building a test app to see if the controls and UI layout we need can work using Telerik .net maui.

I have seen many documents about the RadDataGrid and others about the RadCheckBox BUT, I have not seen any examples that show how to turn one of the returned data columns into a checkbox.

I have tried 2 methods for creating the RadDataGrid;

1) Building the headers individually (this did not produce data rows after fetching)

2) simply creating the RadDataGrid and assigning its ItemSource (this created the columns and produced data rows after fetching)

 

I am using an ObservableCollection to house all my row(s) data which is what I tie the RadDataGrid ItemSource to using the .Add function

 

When I did try the 1st method, I could not bind to the properties of each item in the ObservableCollection which may be either a code issue or a brain (me) issue, not sure because I tried to follow the examples Telerik has put out.

 

I saw a note that if you set the RadDataGrid AutoGenerateColumns value to "True" then Telerik will build the columns according to the underlying data type (ie. if one of the columns shows bool data, it will turn that into a checkbox)....Correct me if I am wrong on that one

I could not get that option to work either, just displayed "True" or "False" in the UI.

I am currently not using the MVVM pattern... All work is done in Code-Behind for simplicity...

Can anyone show me how this can be accomplished or if it cannot be? Also, is there any better documentation than what is found here ( https://docs.telerik.com/devtools/maui/controls/datagrid/overview )

 

If I can ask one follow up...is there a feature for drag and drop?

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 15 Jul 2022
1 answer
128 views

Hey Team,

I have a very strange question for you, I created a MAUI class library:  and then created a TestButton inherits from RadButton, 

like below

using Telerik.Maui.Controls;

namespace TelerikLib.Components
{
    public class NovaButton : RadButton
    {
    }
}

I also created a TestListView inherited from RadListView like below


<?xml version="1.0" encoding="utf-8" ?>
<telerik:RadListView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
             xmlns:local="clr-namespace:TelerikLib.Components"
             x:Class="TelerikLib.Components.TestListView" ItemsSource="{Binding Source}">
    <telerik:RadListView.BindingContext>
        <local:ViewModel />
    </telerik:RadListView.BindingContext>
    <telerik:RadListView.ItemTemplate>
        <DataTemplate>
            <telerik:ListViewTemplateCell>
                <telerik:ListViewTemplateCell.View>
                    <Grid>
                        <Label Margin="10" Text="{Binding Name}" />
                    </Grid>
                </telerik:ListViewTemplateCell.View>
            </telerik:ListViewTemplateCell>
        </DataTemplate>
    </telerik:RadListView.ItemTemplate>
</telerik:RadListView>


Code behind:

using Telerik.XamarinForms.DataControls;

namespace TelerikLib.Components;

public partial class TestListView : RadListView
{
	public TestListView()
	{
		InitializeComponent();
	}
}

After that I created a MAUI Main Project, and added class library reference into Main Project.

1. When I only add custom TestButton into Main Page, it runs well.

2. When I added custom TestListView, application always crashed, when I added  .UseTelerik() method, then it runs well. 

May I know why some components need .UseTelerik(), but some are not? 

If I define custom components based on Telerik, should I have to add .UseTelerik() method into MAUIProgram?

 

Issue: based on Telerk.UI.for.MAUI Trial 1.0.1 + MAUI 6.0.312

 

Thanks

Allen

 

Venelin
Telerik team
 answered on 11 Jul 2022
1 answer
164 views

Hi,

Do you know if its possible to display a dropdown calendar and an hour selector in Telerik DateTimePicker for MAUI targeting Mac.

Thanks

Venelin
Telerik team
 answered on 08 Jul 2022
1 answer
258 views

Hello,

Im Implementing Telerik trail version of MAUI for MAC using Visual Studio 17.3 preview and when I try to use the feature of multi screen in MAUI for MAC I get the following error using Telerik: 

Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'

I do the configuration that Microsoft indicates to use multi windows in MAUI MAC by adding the class named SceneDelegate to the platform (MacCatalyst) and edit the plist file of the platform(MacCatalyst), after that and using Telerik the application crashes before it can show anything. So if I reset the info.plist file it works.

Also I did another test in a new project and when I use the multi window the Telerik elements disappear.

Thank you in advance.

Didi
Telerik team
 answered on 05 Jul 2022
0 answers
267 views

What should I do

 

 

 

 

 

 

 

盼宇
Top achievements
Rank 1
Iron
 asked on 30 Jun 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?