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

Stop Drop-Down List dropping down

3 Answers 104 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 21 Jan 2011, 03:16 PM
Is there any way to stop a drop-down list from dropping down. I can't see a read-only propery or a drop down event.

Thanks
Justin

3 Answers, 1 is accepted

Sort by
0
Carisch
Top achievements
Rank 1
answered on 21 Jan 2011, 04:26 PM
.Enabled?
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 21 Jan 2011, 04:32 PM
Hello,

Yes, you can disable the control, or if you want to keep the control enabled, you can always catch when the DropDown is opening and stop it.

Private Sub RadDropDownList1_PopupOpening(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles RadDropDownList1.PopupOpening
    'If <condition> then
    e.Cancel = True
    'End If
End Sub

Hope that helps
Richard
0
Justin
Top achievements
Rank 1
answered on 21 Jan 2011, 04:33 PM
Thanks
Tags
DropDownList
Asked by
Justin
Top achievements
Rank 1
Answers by
Carisch
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Justin
Top achievements
Rank 1
Share this question
or