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

dont allow edit of textbox in a dropdownlist

1 Answer 41 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Hannes
Top achievements
Rank 1
Hannes asked on 04 Mar 2011, 11:06 AM
Is there a way to make the textbox part of a dropdownlist readonly (so it works more like a html dropdown) ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 04 Mar 2011, 11:11 AM
Hello,

To change the drop down so that the dropdown style does not allow altering the text, you should change the RadDropDownList.DropDownStyle.

this.radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;

Hope that helps
Richard
Tags
DropDownList
Asked by
Hannes
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or