jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Grid doesn't loose focus completely
Tagged: grid input focus
This topic contains 14 replies, has 2 voices, and was last updated by Peter Stoev 10 years, 5 months ago.
-
Author
-
Hi,
Context:
i have a small grid for a list of candidates and order input in a form to send applicationProblem:
When i want to edit a input outside the grid, after editing a row in the grid, the input focus need 2 click before the text that i want to add is written in the right input. Otherwise the text is written in the first cell in the grid.Tested with Chrome,Firefox and IE 11
Step to reproduce the problem:
1) Click in the first cell of the row in the grid
2) Write someting
3) Click one time in the other input
4) Begin to write* you see the text you try to write in the grid cell.
Hi Dundee,
We cannot reproduce such thing with current version of our Grid. If you experience an issue, then share a jsfiddle.net sample about it and we’ll look it.
Best Regards,
Peter StoevSorry…it’s was suppose to have a link in my last post…but it doesn’t appear
here is the example
Hi Dundee,
The first click ends the editing. That’s how it works.
Best Regards,
Peter StoevIn my case, that didn’t work on my side of course, because after clicking one time on the other input, if i try to write someting…the text will appear in the firt cell of the grid….
What i realize is that if i tap “Enter” or “Esc”, i can now click only one time in the other input and that will write at the right place….so it’s look like that the grid doesn’t fire the “endcelledit” event…so the gridstill have the focus…
You don’t have this when you try my jsfiddle example?
Hi Dundee,
Yes, you can end your editing with Enter or Esc if you confirm or cancel the editing. If you end editing with Mouse Click then a first click somewhere outside the Grid will end it and it will not have focus. If you end editing with Esc or Enter, the Focus will stay in the Grid. The Grid raises “endcelledit” when an Editor is closed. That happens always.
Best Regards,
Peter StoevBut in my case, my problem is that when i click any other output outside the grid….the focus is still in the grid….and i need to click a second time to be sure that i write in the right input and not in the grid by error…
Does this is a normal behavior ?
Also..before editing the grid..if a click any other input..that work well as normal…but if i begin to write someting in the grid..or just click to focus on one cell in the grid…my problem happen
Hi Dundee,
I explained you why that happens. Workaround: http://jsfiddle.net/3cxzhgLn/
Best Regards,
Peter StoevDid you try your workaround with I ?E…that doesn’t for me….
I don’t want to be impolite but i’m sorry to say that i still have problem….with no good answer to solve it..
You explain to me the endcelledit with enter or esc…right..i already know that..What i said before is only that i realize that if a did a enter or esc..after i can click other input and it’s will work as normal. But the reality is that user always use the mouse to click in every field/input.
here another small example of my stuff with a focus alert for my other input :
When i click in the input with mouse…no focus alert until the second mouse click (in IE browser)…Also the jqx version is binded to your website to the latest version 3.6.0
Hi Dundee,
Yes, I tried my workaround before sending it. Did you? I don’t find a problem with it.
Best Regards,
Peter StoevFor sure that i try it…We are 3 programmers that test your example with IE 11 and IE 10 on window 8 computer and that doesn’t work for all of us.
Here the example a talk before (i think the link icon in you editor doesn’t work for me too).. : http://jsfiddle.net/3cxzhgLn/2/
In this example, if a reproduce the step describe on my first post of this topic…i will not have alert box until a click a second time…in Internet explorer browser(IE 11)
Dou you have the alert box on the first mouse click with IE browser ?
Hi Dundee,
How would you want it to work when you removed my code? The workaround I suggested you works on my side in any browser. If you wish, you can use different values for the timeout or if you wish, use different editing approach, like popup editing for example.
Best Regards,
Peter StoevHi Peter,
my example is different than you for sure..i just want to illustrate to you a simple alert box on focus to show you that no focus alert box happen on first click…
Like i said me and 2 other collegue try you example (without modification)..and for all 3 that doesn’t work. it is why i send you a sample example with alert box…
i don’t understand why it could work on your side and not our..with my stuff or your stuff…with the same code..on jsfiddle….it’s sound really strange to me…
If you try my last example..on jsfiddle..did you have the alert box on the first click…?
Hi Dundee,
I don’t have more comments about this topic. If you would like use my suggestion. If not, use Popup Editing.
Best Regards,
Peter Stoev -
AuthorPosts
You must be logged in to reply to this topic.