Hi,
Is it possible to somehow change the text , at code behind, in UltraComboEditor when its DropDownStyle = DropDownList ?
I want to change its text at the code when an event fires but i do not want to allow the user the option to input text in it. is it possible?
when i changed DropDownStyle = DropDownList then the setting of text i.e combo.Text = "my text" will not work , obviusly because it is confined to the DropDownList now.
i am looking for something like "AllowEdit" = false;
OUTSTANDING !!
Hello sharik,
After some research, the "Ability to set AllowEdit in ComboEditor" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12050028.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
wow, what an incredible support !
thanks Boris.
Unfourtunatelly, i do not have VS2010 installed right now (new computer), but from opening the Form1.cs file i can see what is your idea :)
your code :
ValueListItem item; private void ultraButton1_Click(object sender, EventArgs e) { item = new ValueListItem("Changed text"); if (!ultraComboEditor1.Items.Contains(item)) { ultraComboEditor1.Items.Add(item); }
ultraComboEditor1.Text = "Changed text"; }
private void ultraComboEditor1_BeforeDropDown(object sender, CancelEventArgs e) { if (ultraComboEditor1.Items.Contains(item)) { ultraComboEditor1.ResetText(); ultraComboEditor1.Items.Remove(item); } }
to be honest i was thinking to do the same thing but was wondering if there is a quicker way to do it . but now that i see how you did it , its quite simple indeed :)
i suppose that from your example your actually saying that there is no simple "AllowEdit" = false; to do it.
thank you for this example and for the supurb support !
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.