This topic contains 2 replies, has 2 voices, and was last updated by  parascus 11 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqxInput, no autoselect on blur #30440

    parascus
    Participant

    Hello jqxWidget-Team,

    I’m using an jqxInput-Widget with autocomplete functionality and I’m fetching the suggestions from remote. But it should only be a suggestion and when the user does not select an item of the list, the original value should be left in the field without changing to the top most suggestion. But when I e.g. press tab to change to the next field it automatically selects the first item.

    Is there any way to prevent this?

    Kind regards

    Stephan

    jqxInput, no autoselect on blur #30529

    Dimitar
    Participant

    Hello Stephan,

    This is jqxInput’s default behaviour and it cannot be prevented.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    jqxInput, no autoselect on blur #30573

    parascus
    Participant

    Hi Dimitar,

    thanks for your answer. Because there’s no functionality (property) in preventing the selection I have tried to prevent it directly by the keydown event and was partial successful:

    $("#jqxInput").keydown(function( event) {
    if (event.which == 9) { $(this).jqxInput({opened : false}); }
    });

    The only thing is that with this the focus is not changed to the next field but that’s ok.

    Best Regards

    Stephan

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.