I am using UltraWinToolbars.ComboBoxTool. When I have an item whose text is larger than Combobox width, the Text gets hidden partially and only gets completely visible when we click on dropdown. I want Combobox width to get autosized based on length of selectedtext.
Is there any property/method available on ComboboxTool through which we can change this behavior?
Thank you Dimitar for your kind help. The problem has been resolved
Hi Nitin,
Thank you for the reply.
Here is the sample for VS 2010. Let me know if you have any additional questions.
Hi Dimitar,
The solution attached by you is not compatible with Visual Studio 2010. Can you please attach the compatible solution?
Thanks
Hello Nitin,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Thanks you for contacting Infragistics Developer Support.
What you could do in your case is to measure the text in the combo and increase or reduce the size of the combo based on the measured size. You can do that using a graphics object. Also I would suggest to still limit the size of the combo box using its Minimum and Maximum width properties.
I have attached a sample demonstrating this approach.
Please let me know if you have any additional questions.