Telerik Forums
UI for .NET MAUI Forum
1 answer
421 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
328 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
198 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
495 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
98 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
130 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
204 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
216 views

What should I do

 

 

 

 

 

 

 

盼宇
Top achievements
Rank 1
Iron
 asked on 30 Jun 2022
1 answer
95 views

Hi, today found i cannot use theming (Light and Dark) for DataGrid, because DataGridBorderStyle class not support binding for the BackgroundColor, BorderColor and TextColor

Deyan
Telerik team
 answered on 28 Jun 2022
1 answer
131 views

The RadCheckBox CheckedSymbolColor doesn't reflect the value I've chosen (testing WinUI at the moment).

Any advice?

Didi
Telerik team
 updated answer on 27 Jun 2022
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?