Last Updated: 09 Dec 2020 16:57 by Brian Norris
Release 2.19.0
Created by: IT
Comments: 1
Category: Checkbox
Type: Bug Report

When I click the checkbox, the OnChange event fires with the new value, but the model field is not updated yet.

<TelerikCheckBox Id="myCheckBox"
<label for="myCheckBox">@(isSelected ? "Selected" : "Not selected")</label>

<div class="text-info">

@code {
    private bool isSelected { get; set; }
    private string Result { get; set; } = String.Empty;

    void ChangeHandler(object value)
        Console.WriteLine($"CHECKBOX: the model is now {isSelected} and the handler received {value}");
        Result = $"OnChange event fired with: {value}";