Hello I have a radzen check box like below. I have added a change event , but when checking or unchecking the checkbox, the event is not fireing the related method. What is wrong?
<RadzenCheckBox @bind-Value="@TagService.Alarms_Chart_show_alarm_texts" @onchange=@Set_CategoryProperty Name="alarmText" Style="margin-left: 20px">
@code {
void Set_CategoryProperty(ChangeEventArgs args)
{
if (TagService.Alarms_Chart_show_alarm_texts == true)
{
TagService.Alarms_Chart_CategoryProperty = "Alarm_Text";
}
else
{
TagService.Alarms_Chart_CategoryProperty = "Alarm_No";
}
}
}