Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






Enter does not select item in select element in inline edit and blocks double click

No Tags
UserPost

22:11
22/04/2012


kobruleht

Member

posts 144

Steps to reproduce:

1. Open
http://trirand.com/blog/jqgrid…..qgrid.html

in IE9

2. Select

Row Editing (new)
Input types

3. Double click in first row "Desktop computer"
to start inline edit

4. Click in "Ship via" column in first row FedEx fiel to open dropdown.

5. Press Down arrow key to select Intime

6. Press Enter

Observed:

1. FedEx appears in Ship Via column

2. Double click in this row not more starts inline edit

Expected:

1. Intime should appear

2. Double click should put row in inline edit mode again.

How to fix ?

10:20
23/04/2012


OlegK

Germany

Member

posts 1167

Post edited 10:47 – 23/04/2012 by OlegK


I described in my answer how the bug can be fixed. I repeat the description of the fix here. To fix the problem it's enough to set focus to any other element on the page which will be not destroyed by saveRow. It will force 'change' event in the <select> which saves the current option choice and do additionally many other finalizations like closing popup menus (for example from datepicker or other controls which could be attached to the editing field).

So I suggest just to add the line

$(ta).closest("tr.jqgrow").focus();

before the line which calls saveRow. The demo uses the fix.

I hope that Tony will read the post and include the fix in the main code of jqGrid.

Best regards
Oleg 

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

iski.wang

71 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9661

Posts: 28949

Membership:

There are 10357 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1167

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (7043 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information