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??
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.
Thanks, but I don't work because I've a inherited control of ultracomboeditor ,not ultrawingridcombo.
PerformAction doesnt a method of ultracomboeditor
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.
Ok!! It's works!! Thank you very much!