[CLOSED] Combobox - Validation

  1. #1

    [CLOSED] Combobox - Validation

    I have a combobox that has TypeAhead enabled - and we want that. However, I need to do 3 things. 1) I need to validate that a valid entry was selected. 2) I need to validate that the entry selected is not the same as the old value. 3) Once validation is completed successfully, I need to enable a button on the page to allow an update. I am using these settings:

    .SelectOnTab(True) _
                .MultiSelect(False) _
                .TypeAhead(True) _
                .ForceSelection(True) _
                .ValidateOnBlur(True) _
                .ValidateOnChange(False) _
                .Validator(Sub(vldtr)
                               vldtr.Fn = "validateCombo"
                           End Sub) _
                .QueryMode(DataLoadMode.Local)

    And everything is working except if the user presses the enter key to capture the TypeAhead, the validation does not fire. How can I capture that event/key stroke to fire the validation as well?

    Thanks.
    Last edited by Daniil; Jul 20, 2012 at 9:08 AM. Reason: [CLOSED]
  2. #2
    Hi,

    What about to do not set up this
    .ValidateOnChange(False)
    leaving the default true?
  3. #3
    That doesn't work. It interfers with me having the TypeAhead and validating that a record from the combo has actually been selected. For now, I have bound a listener to the Select event at the "onReady" event. That seems to be workking - at least until I find otherwise. You may close the ticket.

Similar Threads

  1. [CLOSED] Combobox validation
    By alainfo in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 27, 2012, 8:58 PM
  2. Replies: 1
    Last Post: Feb 16, 2012, 3:27 PM
  3. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  4. Client Side Validation and Validation Status
    By speddi in forum 1.x Help
    Replies: 8
    Last Post: Nov 03, 2011, 11:24 AM
  5. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM

Tags for this Thread

Posting Permissions