No Focus in ComboEditor

Posted by Admin on 06-May-2010 06:33

Hi,

I've created a method in a combo, that in value-changed when textlength >= 5 executed DropDown(), But how can i do to don,t put focus in the combo??

All Replies

Posted by jquerijero on 10-May-2010 17:48

If you want the focus to stay in the combo box, so you can keep typing, change the ValueChanged to;

METHOD PRIVATE VOID ultraCombo1_ValueChanged( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):

  IF LENGTH(ultraCombo1:Text) >= 5 THEN

    ultraCombo1:PerformAction(Infragistics.Win.UltraWinGrid.UltraComboAction:Dropdown).

END METHOD.

Posted by Admin on 11-May-2010 06:25

Thanks, but I don't work because I've a inherited control of ultracomboeditor ,not ultrawingridcombo.

PerformAction doesnt a method of ultracomboeditor

Posted by Swathi Yellavaram on 11-May-2010 08:42

Hi,

Write following statement after DropDown statement.

                        ultraComboEditor1:SelectionStart = length(ultraComboEditor1:Text).

    METHOD PRIVATE VOID ultraComboEditor1_ValueChanged( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
        IF ultraComboEditor1:TextLength > 3 THEN
        DO:
            ultraComboEditor1:DropDown().
            ultraComboEditor1:SelectionStart = LENGTH(ultraComboEditor1:Text).
        END.
        RETURN.
    END METHOD.

Hope this helps.

Regards,

Swathi.

Posted by Admin on 12-May-2010 01:51

Ok!! It's works!! Thank you very much!

This thread is closed