Completed
Last Updated: 28 Feb 2018 14:34 by ADMIN
ADMIN
Dimitar
Created on: 02 Feb 2018 09:03
Category:
Type: Bug Report
0
FIX. RadDropDownList - the first item is always selected when the items do not have text and the control loses the focus
To reproduce:
- Add drop down items and set their color instead of setting the text of the items.
- Change the selected index and leave the control. 
- The first item is selected.

Workaround:
Class MyDDL
    Inherits RadDropDownList
    Protected Overrides Function CreateDropDownListElement() As RadDropDownListElement
        Return New MyDDLElemnt()
    End Function

End Class
Class MyDDLElemnt
    Inherits RadDropDownListElement
    Protected Overrides Sub EnterPressedOrLeaveControl()
        ' MyBase.EnterPressedOrLeaveControl()
    End Sub
    Protected Overrides ReadOnly Property ThemeEffectiveType As Type
        Get
            Return GetType(RadDropDownListElement)
        End Get
    End Property
End Class

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments