I guess not! 🙁
Anybody got an idea if its possible to do this? any help is greatly appreciated.
thanks
I have the same thing on certain grids. I havent figured out why this happens yet.
Hi Tony
The Question is how can I make inline edit disabled after the grid is already loaded on the page?
My scenario is this:
User
Hi Oleg & Tony
Thanks for your response. I tried your suggestions but it didnt work. 🙁
I even tried putting reacreateform: true(as per Tonys suggestion) & also false(as per Olegs suggestion)
Hi Tony
Any ideas about this?
I did a search in my workspace for 'recreateForm' and found only 2 instances.
Both in jquery.jqGrid.js.
If I need to override this, how do I go about doing this?
Hi Tony
I am using the strut2-jqueryplugin (http://code.google.com/p/struts2-jquery/) I wonder if this settingyou are talking about needs to be altered in this plugin. Anyway, here is an example of how I structure my grids which cause this issue:
Hi Tony
I tried your suggestion but still the same problem.
I copied that logic you said could be the problem in your previous post from the jqGrid wiki at:
http://www.trirand.com/jqgridw…..ne_editing
Its very interesting why this problem happens!
Hi Tony
I have just proved this problem also on the plugin I talked about earlier in my previous post. At least thats good news and it means that its not only in my application but can occur in other applications.
Do you suggest I put in this bug also in the struts2-jquery plugin forum? I dont want to confuse this by putting it in 2 places.
All I did to prove my post was that onSelectRow, I call this below(I ensure that for every eidt I call my successFuncStandardGrid and always return false). Again the 1st time, the row doesnt update as this function returns false. But next time I edit the same row, this function doesnt get called and updates the row.
Hi Tony
I understand about if you do every test case you will be in trouble 🙂
I dont really have a live system I can give you an example of. I do use the Struts2 Jquery plugin which makes use of jqgrid and is located here:
http://www.weinfreund.de/struts2-jquery-showcase/index.action
However I dont think its a plugin issue because I do call jquery directly when this problem occurs.
The simple scenario that can be tested is that if one edits a row (in inline editing, I only use inline editing in all my grids) & and error occurs its works fine the 1st time and the grid restores the data back because an error occurs. However if you dont click on any other row, but inline edit the exact same row immediately, If an error occurs on the server, my grid takes no notice of this error and simply saves the data on client grid(even though server has failed).
In the mean time, I have downloaded the last struts2-jquery plugin example war and I want to see if I can replicate this problem on it.
Hi Tony
I have just checked and I basically send the exact same request and I get back the exact same response from the server.
1st response which calls successfunc:
{"gridModel":null,"message":"Error: Editing Document Phase START. This Phase Already exists.","page":0,"phase":{"phaseId":null,"phaseName":"START","projectId":null},"phaseList":[],"phaseName":null,"phaseNameHeader":null,"records":0,"total":0}
since message starts with Error, I know its an error and then I will return false(this means my message is displayed and row edited is restored to original value)
2nd response which does not call successfunc after editing the same cell immediately after:
Hi
My css skills are not the best. Can you give me an example of how to define my own interaction states to improve selection performance? Maybe you can post your own example.
Thanks for your help
I am facing a similar issue with 16 columns.
Hi Michael
Thanks for your post. I now understand that when the enter key is pressed, whatever element has a focus on it will be executed.
I'm still a bit confused about your solution and how pressing the enter key will execute a an inline edit when no cursor exists in a text field.
Maybe you can help me with this as the only problem I have this scenario is when I have a column which uses datepicker. When I pick the date from date picker, the textfield has the date but not the cursor. Do you know how I can set the focus from date picker to the textfield?
Here is my column:
<sj:gridColumn name="receivedDate" index="receivedDateHeader" title="received date"
editable="true" edittype="text" editoptions="{size: 12, maxlength: 10, dataInit: function(element) { $(element).datepicker({dateFormat:'dd/mm/yy'}) } }"
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top