This is a migrated thread and some comments may be shown as answers.

SelectIndex=-1 when Item's value=empty if AllowCustomText=True

0 Answers 47 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
tomexou
Top achievements
Rank 1
tomexou asked on 05 Jun 2017, 11:12 PM

RadCombox version is 2017 R2 (2017.05.03).

When user chooses second item: "empty", the SelectedIndex=1 when AllowCustomText=False,
but SelectedIndex=-1 if the value is empty when AllowCustomText=True.

I think it's a bug for empty value in AllowCustomText mode.

<telerik:RadComboBox ID="Type" runat="server"
    AllowCustomText="true"
    RenderMode="Lightweight"
    CollapseAnimation-Duration="0"
    ExpandAnimation-Duration="0">
    <Items>
        <telerik:RadComboBoxItem Text="first" Value="1" />
        <telerik:RadComboBoxItem Text="empty" Value="" />
        <telerik:RadComboBoxItem Text="third" Value="2" />
    </Items>
</telerik:RadComboBox>

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
tomexou
Top achievements
Rank 1
Share this question
or