Hi Guys,
I need to implement a control that I've described in subject.
For this purpose I've chosen UltraCombo. The problem is that when I set column style to ColumnStyle.FormattedText for highlighting inputed symbols, code for word wrapping such as
private void ultraCombo1_InitializeLayout(object sender, InitializeLayoutEventArgs e) { e.Layout.Override.CellMultiLine = DefaultableBoolean.True;
e.Layout.Bands[0].Override.RowSizing = RowSizing.AutoFree }
or
private void ultraCombo1_InitializeLayout(object sender, InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["My Column"].CellMultiLine = DefaultableBoolean.True;
doesn't work
but
private void ultraCombo1_InitializeLayout(object sender, InitializeLayoutEventArgs e) { e.Layout.PerformAutoResizeColumns(false, PerformAutoSizeType.AllRowsInBand); }
still works and I can get autoresizing for my columns but I need word wrapping and can not understand why it doesn't work when I set ColumnStyle.FormattedText. When this param was default, everything was fine and word wrapping works perfect.
Also I'm interesting why when we set AutoCompleteMode as Suggest and AutoSuggestFilterMode as Contains for UltraComboEditor, we take highlighting symbols in auto-suggested rows and if we set same properties for UltraCombo, we don't take this feature. Is it possible to do for UltraCombo. If it it, the first question won't be valid.
Hope to take at least answer for one my question, so I could be able to implement auto-suggest control with word wrapping and columns.
Thanks in advance,
Eugenij.
Hello,
Please see attached sample and let me know if this is what you are looking for. The sample also demonstrates a suggest mode like “Contains any of”. Please run the sample and type “new se” in the combo. If you do not need this type of suggestion mode, please comment code in TextChange event of UltraCombo and set AutoCompleteMode and AoutoSuggestMode to desired values.
Please let me know if you have any further questions.
Not at all. I've attached a screenshot where is shown a behavior of current control when I change for e.g. record "New York" to "New Yorkkkkkkkkkkkkkkkkk12". I mean, I need word wrapping for records that don't placed into cell and this implementation can not do this feature.
I've found a solution. It was my fail during behavior testing. I didn't know thatUltraFormatedTextEditorwill not wrap in the middle of a word but for testing used text that consist of one large word. So it really didn't wrap it and I could not find solution.
Maybe it's still valid my second question about difference between UltraCombo and UltraComboEditor.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this matter?
Thank you for using Infragistics Components.
Hello ,
Main difference between UltraCombo and UltraComboEditor is that:
UltraCombo contains grid (UltraGrid) in its dropdown and this component is based on UltraGrid.
UltraComboEditor contains a dropdown list.
So both component have similar functionality, but they work on totally different way.
More information about both component you could find on the following links:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinComboEditor_About_WinComboEditor.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinCombo_About_WinCombo.html