jQWidgets Forums

This topic contains 6 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Input autocomplete #30378

    mg
    Participant

    Hi, im using a jqxinput with autocomplete feature as editor of jqxgrid column. Im using a function as source of this jqxinput and inside of this function a ajax call to get a array of strings from the server and show this values in autocomplete popup, ok up there.

    My problem occurs when this jqxinput with autocomplete column editor is active and the user is typing and the user press enter the editor is not active but a search with ajax has begun when user is typing in the grid editor and when this ajax call return from the server the editor is not active and a popup appears in top left corner of the browser with server values.

    Can see this image? http://oi40.tinypic.com/1ka6c.jpg i made this image with my problem.

    Thanks,

    MG

    Input autocomplete #30387

    Peter Stoev
    Keymaster

    Hi MG,

    We have a working sample about it: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cellcustomediting.htm?arctic. In addition, you cannot use jqxInput editor with Ajax as a Grid editor unless the Ajax is with “async: false” parameter. Otherwise, when you press Enter, the Ajax call would be ready when your editor is already closed.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Input autocomplete #30434

    mg
    Participant

    Thank for your anwser, but even with “async: false” ocurrs this event. Whats options i have?

    MG,

    Input autocomplete #30446

    mg
    Participant

    BTW, im trying to accomplish this with tricks like jqxgrid “disable : true” in handlekeyboardnavigation event before ajax is called and when ajax call return, “disable: false” to make a look of jqxgrid “busy” but the editor is still enable and the user can type anything and “disable: true” of jqxgrid dont work in this case.

    MG

    Input autocomplete #30469

    Peter Stoev
    Keymaster

    Hi MG,

    In our sample, we do not make async ajax calls though the editor and we do not experience the problem that you do, because the editor is active when the user does auto-complete. The problem on your side is that the editor is not active when the auto-complete operation is completed so the popup is displayed on a wrong place.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Input autocomplete #30493

    mg
    Participant

    Correct, is a bug? could be interesting if i can override a render popup function to customize when or not show that popup.

    MG

    Input autocomplete #30506

    Peter Stoev
    Keymaster

    Hi MG,

    You should take into account the fact that an Async function call could complete when the editor is closed. You should not use Async calls in the Grid editors.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.