Completed
Last Updated: 29 Mar 2022 12:39 by ADMIN
Release 3.2.0
Jake
Created on: 24 Mar 2022 09:56
Category: FloatingLabel
Type: Bug Report
1
Inside FloatingLabel, dynamic parameter change in ComboBox does not work

I have a flag for Enabling/Disabling a ComboBox. It works without the floating label. With the floating label, I cannot get the ComboBox to recognize the flag changing.

The first box will not re-enable with the button click, but the second enables/disables as many times as you click the button. Here is the code:

<h3>TestPage</h3>

<TelerikButton OnClick="@(() => {_isEnabled = !_isEnabled;})">Is Enabled: @_isEnabled.ToString() </TelerikButton>

<TelerikFloatingLabel Class="otis-fl-100"
                      Text="Select a Form">
    <TelerikComboBox Data="@_data"
                     Width="100%"
                     TValue="string"
                     TItem="string"
                     Filterable="true"
                     Enabled="@_isEnabled">
    </TelerikComboBox>
</TelerikFloatingLabel>

<br />
<br />

<TelerikComboBox Data="@_data"
                 Width="100%"
                 TValue="string"
                 TItem="string"
                 Filterable="true"
                 Placeholder="Select a Form"
                 Enabled="@_isEnabled">
</TelerikComboBox>

@code {
    private List<string> _data = new List<string> { "one", "two", "three" };
    private bool _isEnabled = true;
}
0 comments