jQWidgets Forums
jQuery UI Widgets › Forums › Editors › Input, Password Input, TextArea, ColorPicker, Rating, TagCloud, Loader › Input autocomplete
Tagged: jqxinput in grid
This topic contains 6 replies, has 2 voices, and was last updated by Peter Stoev 11 years, 6 months ago.
-
AuthorInput autocomplete Posts
-
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
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 StoevjQWidgets Team
http://www.jqwidgets.comThank for your anwser, but even with “async: false” ocurrs this event. Whats options i have?
MG,
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
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 StoevjQWidgets Team
http://www.jqwidgets.comCorrect, is a bug? could be interesting if i can override a render popup function to customize when or not show that popup.
MG
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 StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.