Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Workaround for disabled control default forecolor/backco
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00924009
Message ID:
00924014
Vues:
13
Hey, Todd,

Two things...

First, in answer to your question, I got around the combobox issue by created a user control with my subclassed combo box and my subclassed textbox. The textbox 'sits on top' of the combo box, but at any one time, only one is visible.

When in 'edit mode', the textbox is invisible and the user can select from the combo box. When in 'non-edit' mode, the combo is invisible, the textbox is visible but readonly, and the textbox contains what the value of the combobox.

I know it sounds a bit odd at first, but I've been doing it for two years now in .NET, and it's pretty seamless. Bottom line is, when in 'non-edit' mode, the user doesn't need the 'combo', just a text representation of what the combo would otherwise show.

Second, on the read-only/enabled issue, let me throw out my two cents - I use read-only, because it allows users to 'enter' a text column and highlight the contents for a copy-paste. I've built a few financials apps where users wanted to be able to copy the contents of a particular field (that they weren't allowed to change) so that they could paste it into an e-mail, spreadsheet, whatever. Your situation may be different, but figured I'd throw it out.

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform