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 02:33 PM

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 07:35 PM

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 06:21 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon