Hi,
I am using ComboBoxTool. problem am facing is, am unable to align value list drop down to ComboBoxTool. how can i do this.? please see attached image.
Another issue is if I fix length of value list, complete text(if length of value text is greater than ComboBoxTool width) for value list item is not displayed in value list dropdown. how can i display complete item text for which value list width is equal to ComboBoxTool width.?
Hello Waqas,
You can change the alignment of value list of ComboBoxTool by setting the DropDownListAlignment property to Left value.
With selected ComboBoxTool you can reach this property in Properties window Tools -> [ yourComboBoxTool] -> ValueList -> DropDownListAlignment.
Regarding your second question you can set the width of the value list by setting appropriate value to DropDownListWidth property Properties window Tools -> [ yourComboBoxTool] -> ValueList -> DropDownListWidth.
Please note you can also set the TextTrimming property to have nicer outlook. You have several options for this property and you can find them in Properties window Tools -> [ yourComboBoxTool -> Appereance.
Please find attached example with two combo box tools. One with DropDownListWidth set to 120px and one with default value of -1. Please let me know if this is what you are looking for or if I am missing something.
Please let me know if you have any further questions.
Sincerely,
Milko
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
thanks for reply. Alignment problem is solved now.
But 2nd problem is still there. if I set DropDownListWidth am unable to show complete Text. is there anyway to show complete value list text in specified width without trimming text (word wrap).?
You can use walk around to force ComboBoxTool’s text to wrap. To have text wrapped you need to have new lines in text – this way ComboBoxTool will wrap text. If you do not have new lines symbol in your text you can still add them in run time.
Please find attached revised example with ComboBoxTool showing text wrapped. Please let me know if this is what you are looking for or if I am missing something.
Please note you can also use UltraCombo or UltraComboEditor to have same result. Please find attached one more example with UltraCombo control.
thanks. working perfect now