Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Auto-suggestion control with columns, word wrapping and symbols highlighting
posted

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;

             e.Layout.Bands[0].Override.RowSizing = RowSizing.AutoFree   
        }

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.

Parents
  • 48586
    posted

    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.

    92920DevMimic.zip
Reply Children