Disabled CheckBox is still enabled on Android

1 Answer 83 Views
CheckBox
Tinus
Top achievements
Rank 2
Tinus asked on 02 May 2022, 07:39 AM

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

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 05 May 2022, 08:42 AM

Hello Martin,

Thank you for the provided details. I have easily reproduced the behavior on Android. Find this issue logged in our feedback portal: https://feedback.telerik.com/maui/1564000-checkbox-android-disabled-checkbox-is-still-enabled 

I have tested the .NET MAUI CheckBox control and it works as expected. I can suggest you use this control for now until the issue in the Telerik .NET MAUI CheckBox is fixed. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tinus
Top achievements
Rank 2
commented on 05 May 2022, 09:13 AM

Hi Didi,

unfortunately the MAUI Checkbox also has a problem on Android:

https://github.com/dotnet/maui/issues/6727

Regards
Martin

Didi
Telerik team
commented on 05 May 2022, 09:36 AM

Hi Matrin,

Thank you for sharing this link. The issue with the MAUI CheckBox is different. Still you can disable the checkbox. 

Tags
CheckBox
Asked by
Tinus
Top achievements
Rank 2
Answers by
Didi
Telerik team
Share this question
or