Hi, I have the following form. I'm trying to hide a form item based on the previous bool form item (see highlighted lines in the code). The form is bound to ChartDetails which has a bool property called UseGroupByProperty which gets rendered as a checkbox. When I tick and untick the checkbox using the mouse the binding doesn't seem to update however as soon as I press a key it does. Is there a way to get the binding to update when the checkbox is selected/unselected with the mouse?
<TelerikForm Model="@ChartDetails" Orientation="FormOrientation.Horizontal"
@ref="@ChartDetailsForm">
<FormValidation>
<DataAnnotationsValidator></DataAnnotationsValidator>
</FormValidation>
<FormItems>
<FormItem LabelText="Name*:" Field="@nameof(CustomChartViewModel.Name)"></FormItem>
<FormItem LabelText="Type*:" Field="@nameof(CustomChartViewModel.ChartType)"></FormItem>
<FormItem Field="@nameof(CustomChartViewModel.EntityType)"></FormItem>
<FormItem Field="@nameof(CustomChartViewModel.ShowLegend)"></FormItem>
<FormItem Field="@nameof(CustomChartViewModel.ShowLabels)"></FormItem>
<FormItem Field="@nameof(CustomChartViewModel.UseGroupByProperty)"></FormItem>
@if (ChartDetails.UseGroupByProperty)
{
<FormItem Field="@nameof(CustomChartViewModel.GroupByProperty)" >
<Template>
<label class="k-label k-form-label">Group Property</label>
<div class="k-form-field-wrap">
<TelerikDropDownList Data="columns"
ValueField="ColumnName"
TextField="Title"
@bind-Value="ChartDetails.GroupByProperty"
DefaultText="Select Property " />
</div>
</Template>
</FormItem>
}
</FormItems>
<FormButtons></FormButtons>
</TelerikForm>