Thanks so much for your reply!
Where in the jqgrid code would you put this clone code?
In the beforeshowform?
Jim
This also happens to me….without this patch and scroll set to 1 and scrollrows set to true, if you scroll down to the end and then select a row (single click), the row will not be selected and the scroll bar will move up.
The fix shown below also worked for me.
Hopefully this will be included in future versions of jqgrid.
Jim
In case any one else runs into this, I found my fix.
It wasn't obvious to me, but you have to have the
No answer? No fix?
I have this same problem with several different pages – fields appear in a completely different sequence than what I specify.
Jim
Just tried it with 3.6.12 of FF and it worked perfectly.
Sorry for bothering you with this.
Jim
I having been using FF 3.5.7 on Windows XP (32 bit). I will try updating to the latest FF.
Thanks,
Jim
Just a quick update – I added this feature myself (for now).
On line 73 you will see this:
English is my native language. I will use your “fix”. However, in all the applications I can think of (think of Microsoft Word for example), if you made changes to your Word document and then clicked the Close window icon, Word would ask you if you wanted to “Save your changes?”. If you say Yes, then it would Save and then exit. If you said No, then it would exit without saving changes and if you clicked Cancel, it would “Cancel” your action (this being the Close window action) and return you to your document. I think it makes sense for your “Save changes” dialog to do the same thing.
As for the second problem, you are right – I cannot reproduce it in IE. Only in Firefox.
Jim
Thank you for the response!
If you only have Text in the Grid, then we should be comparing Text against Text and not Text against Value.
However, I think in the grid, the displayed items are whatever I return in the SQL. So….for a Select in a Form, it should be comparing against the Value I put in the Select and not against the Text. Anyway…my code above works for me. If you decide to not change your code, then I can always just make the change everytime I download a new version.
It just doesn't seem logical to me.
Jim
Thanks so much!
I figured out that you are comparing the Text instead of the value.
Just checking…is the above expected behaviour?
Hey thanks for the reply.
I am not sure that that is quite what I meant.
In my grid I would have ID, Name and Address…but when the row is clicked and the edit form comes up I also want to let them edit the entire record including City, Prov/State, County, Notes etc….and these fields are NOT part of the grid.
Are you saying that the fields need to be part of the grid, only hidden for this to work?
Jim
Took me a while, but I tracked down some code that seems to work.
Just thought I would share with the group:
$where = “”;
$searchOn = $_REQUEST['_search'];
if($searchOn=='true') {
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top