gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Inline editing forces keys=true when calling jqGrid's editRow #960

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To Reproduce:
1. Create grid; editinline="true" w/ valid editUrl.

Within the native jqGrid editRow function, having keys set to true wraps the 
RETURN and ESC keys and handles them to submit or restore the row.

  * Because the native jqGrid returns false on those keyDown events, it's impossible (well, I haven't found a way) to add custom behavior on those keystrokes.
  * Because keys=true is hard-coded into the call to editRow in jquery.grid.struts2.js, it's impossible (again, I haven't found a way) to modify or cancel the built-in behavior.

Potential solution:
Incorporate an inlineEditParameters property into the grid tag.

Versions affected:
jquery.struts2.js r1810 and below (v.3.5.1)

Original issue reported on code.google.com by iscrib...@gmail.com on 21 Mar 2013 at 10:29

GoogleCodeExporter commented 9 years ago
Are you able to prepare a Patch for this?

Original comment by johgep on 7 Apr 2013 at 10:36

GoogleCodeExporter commented 9 years ago
I am able, but I am not likely to have time for a couple of weeks or possibly 
not even until June. If I do find the time before you or someone else has 
started it, shall I just post here asking you to assign it to me?

Now that I revisit this issue, I think the most user-friendly and 
backward-compatible solution is simply another grid tag property (defaulting to 
true).

Original comment by iscrib...@gmail.com on 15 Apr 2013 at 3:29