So, I guess option (1) is it.
Tony,
I added the { key : true } to my colModel object for my key column giving…
{ name: 'invid', index: 'invid', editable: false, key: true, width: 66, align: 'right' }
… and reran my test with a non-key column named 'id' (not the primary key).
Hello, Tony!
I do understand what you are saying. I have already used the extra parameters to communicate both the table name and primary column name.
Tony,
The problem is that if I have a table with a column named 'id', that column cannot be edited.
Tony,
I was able to achieve my desired result by changing line 122 of grid.inlinedit.js (should that name be inlineedit?) from…
if(tmp) { tmp[“id”] = rowid; ….
to
if(tmp) { tmp[$t.p.jsonReader.id] = rowid; ….
but I don't think this is a real solution as it relies on the presence of the jsonReader object.
Tony,
After reading this, I went back to the demo code and noticed the empty string as the first element of the array to correspond to the 'act' column.
I suppose I should have gotten the demo working first to build confidence, but I am sometimes too impatient.
Do you think a comment in the demo code explaining that would be valuable?
Tony,
I added another column to my database query to return a blank 'act' column with the result that I had a grid column defined.
Tony,
I changed loadComplete() to gridComplete() and observed the same behaviour.
In stepping through the code, I observe this is a problem selecting the object.
Tony,
I added…
Tony,
Yes.
Tony,
The z-index was it.
Rest assured, this does work!
I was able to get this working within the grid, but not within the 'add' input form.
NEVERMIND!
I am embarassed to say that I was editing a copy of this code in one directory and executing from another.
Similar problem here.
jquery 1.3.1
jqgrid 3.4
firefox 3.0.6
Fedora 10 (64-bit)
code…
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top