Unplanned
Last Updated: 19 May 2022 12:13 by ADMIN
Daniel
Created on: 11 May 2022 18:59
Category: ListView
Type: Bug Report
0
ListView crashes app when Grouping with a RadEntry

Hi Team,

When I use a RadEntry or Entry in the RadListView, it is fine when rendering flat data. However, when the items are grouped, the app has a native WinUI unhandled exception (that needs a 2nd instance of VS2022 to catch).

The only way to stop it was to not use an entry-like control like a Label.

Here is code to reproduce it,  I've attached a runnable example

 

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerik="clr-namespace:Telerik.Maui.Controls;assembly=Telerik.Maui.Controls"
             xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.Maui.Controls.Compatibility"
             xmlns:telerikListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.Maui.Controls.Compatibility"
             x:Class="EntryTests.MainPage">
    <Grid>
        <telerikDataControls:RadListView x:Name="rulesListView"
                                         ItemsSource="{Binding Clients}"
                                         VerticalScrollBarVisibility="Always">
            <telerikDataControls:RadListView.GroupDescriptors>
                <telerikListView:PropertyGroupDescriptor PropertyName="Username" />
            </telerikDataControls:RadListView.GroupDescriptors>
            <telerikDataControls:RadListView.ItemTemplate>
                <DataTemplate>
                    <telerikListView:ListViewTemplateCell>
                        <!-- WORKS -->
                        <!--<Label Text="{Binding Username}" FontSize="14"/>-->
                        <!-- HARD CRASH -->
                        <telerik:RadEntry Text="{Binding Username}" FontSize="14" />
                    </telerikListView:ListViewTemplateCell>
                </DataTemplate>
            </telerikDataControls:RadListView.ItemTemplate>
        </telerikDataControls:RadListView>
    </Grid>
</ContentPage>

 

Version Note: The repro app is using UI for MAUI v0.9.0 because it was tested by Lance McCarthy with both 0.8.0 and 0.9.0 (this 0.9.0 was built on May 11th).

Attached Files:
1 comment
ADMIN
Yana
Posted on: 19 May 2022 12:13

Hi Daniel,

I just wanted to quickly follow-up - yes, it's an issue in the control and it happens only when the ListView is grouped by the same property the Entry inside the ItemTemplate is bound to.  There isn't a workaround, so please follow the feedback item in order to receive an email notification as soon as there is a status change.

I am sorry for any inconvenience caused.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.