Last Updated: 05 Jun 2020 06:46 by ADMIN
Created by: IT
Comments: 0
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}";