We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ReadOnly ComboBoxAdv

How can I make a ComboBoxAdv ReadOnly (i.e, the control remains enabled, but the selected item cannot be changed.) Thanx

3 Replies

AS Arun Srinivasan Syncfusion Team September 12, 2003 06:33 PM UTC

Hi Omar, Well you can do that by listening to the BeforePopUp event of the PopupContainer which controls the dropdown of the ComboBoxAdv. Arun

OM Omar September 12, 2003 11:35 PM UTC

Greetings, OK.. that was great. NOW the user can not dropdown the cmbo BUT the user can still write text inside the TextBox portion. I tried setting the cbo.TextBox.Readonly = True but all that did is to make the control's color as if its DISABLED and still you could write text inside it. How can I make the textbox portion ReadOnly just like a normal textbox. Thanx

AS Arun Srinivasan Syncfusion Team September 14, 2003 10:21 AM UTC

Omar, To disable typing into the ComboBoxAdv, you need to set the DropDownStyle property to DropDownList. Arun

Live Chat Icon For mobile
Up arrow icon