jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Problem with input field in a jqgrid with toolbar in a jqwindow
This topic contains 15 replies, has 4 voices, and was last updated by Peter Stoev 11 years, 3 months ago.
-
Author
-
Hi there,
after a couple of hours looking unsuccessful for the problem: Please help!
Setting up a window with an included grid with an toolbar:
rendertoolbar: function (toolbar) {
var me = this;
var container = $(“<div style=’margin: 5px;’></div>”);
var span = $(“<span style=’float: left; margin-top: 5px; margin-right: 4px;’>Suche/Filter: </span>”);
var input = $(“<input class=’jqx-input jqx-widget-content jqx-rc-all’ id=’searchFieldartikel’ type=’text’ style=’height: 23px; float: left; width: 223px;’ />“);
toolbar.append(container);
container.append(span);
container.append(input);
var oldVal = “”;The problem is that the first time the dialog pops up you can use the input field for typing in. After hiding and reshowing the window the input field fires an blur directly after clicking in.
Here is a trace of the blue event on the first time:
http://www.gruppenhaus-manager.de/trace_ok.pngand here is a trace after the first time:
http://www.gruppenhaus-manager.de/trace_notok.pngI tried to isolate, but I didn’t find out. Maybe there is a structural problem.
The toolbar input field outside a window with the same code do not have a problem.If you need more info. Please contact me.
Regards
ChrisHere is a short example: http://gruppenhaus-manager.de/meintest.php
Hi gruppenhaus,
Which browser do you use in your test?
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter.
I tried firefox, chrome on different machines…
Kind regards
ChrisHi Chris,
You mean that focus is lost when you double-click, right?
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi.
No. What happens is that I simple (not double) click into the inputfield to enter something and then the focus will get lost immediately. So I cant enter anything anymore. Try to call the window more then once. Close it and use the link. I dont find the reason for this behavior.
Many regards
ChrisHi Chris,
I do not observe such behavior. I see a problem with the focus when I double-click on the INPUT, but I can enter values there. Will test more, but if you would like, do not use the Toolbar, use a simple DIV tag above jqxGrid.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter,
Yes. A double click is also a problem. The cursor won’t stay in the input field. I changed the http://gruppenhaus-manager.de/meintest.php and added an input field above. This works without a problem. But the toolbar input field behaves like an disabled element.
I tried it in the InternetExplorer. And there is even a bad behavior. If you want I can make a short screener, so you can see the problem.
Regards
ChrisHi Chris,
That is why I wrote you to use another DIV tag if you find the Grid’s default Toolbar to be not working as expected in your scenario.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter,
yes. Thanks for the workaround. But is’nt it important to find a solution for using an input field in the toolbar? There is something wrong – maybe in Jquery – maybe somewhere other. If I can help you to improve the jqwidgets you get all my support – this is a great framwork.
Best regards
ChrisHi Chris,
We tested the scenario and actually found out that something similar was reported just after the release of jQWidgets 3.2.1. We have a work item about that and it is already resolved for the next build – jQWidgets 3.2.2 so there would not be such problem once that version is released. Thank you again for the feedback.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks Peter,
I’m looking forward for the next release!
great support
With kind regards
ChrisHello Peter,
can you give us an estimation, when a 3.2.2 release will come? Will there be a minor release in a few days or will this be fixed in a normal release according to the roadmap?
Thanks & greetings,
NikolaHi Nikola,
The issue will be resolved in ver. 3.2.2. For now, you can use the workaround suggested in this topic.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi All,
The issue occurs even if the input element is into Grid’s lines by using cellsrenderer feature, not only in default Toolbar…
The problem persists since 3.1.0. Version 3.0.4 is bug free.
I’m looking forward for the next release.
thx
guglielmo -
AuthorPosts
You must be logged in to reply to this topic.