When I set the Text property of one of the items to a Null string ("") and it's selected then the SelectedItem property of the DDL gives a Nothing value. If I set the Text property to f.e. 1 space (" ") then I don't have this problem.
3 Answers, 1 is accepted
0
Peter
Telerik team
answered on 15 Dec 2011, 05:07 PM
Hi Marcus,
Thank you for writing.
I cannot reproduce the issue with my test project - please refer to the code snippet below:
PrivateSubForm2_Load( sender AsSystem.Object, e AsSystem.EventArgs) HandlesMyBase.Load
for i =0 to 10
me.RadDropDownList1.Items.Add("Item "&i)
Nexti
me.RadDropDownList1.Items(4).Text=""
EndSub
When I select Item(4), the SelectedItem is not Noting.
Please check if I have not followed your description correctly and modify the code in a way to demonstrate the issue. This will allow me to assist you further with a workaround if such is available.
We will provide fix for it in our next release. Currently, as a workaround you should set DropDownList's Text property to "" . Please refer to code below: