Home › Forums › Guriddo jqGrid JS › Help › elem[0] is undefined in call to setRowData()
jquery 1.3.1
jqGrid 3.4.1
FireFox 3.0.7
Fedora 10 (64-bit)
I am trying to implement the edit buttons as shown in the “Custom Edit” demo.
Hello,
Do you have defined a act coulmn in the colModel?
Regards
Tony
Tony,
Yes.
I added…
Try to use gridComplete and not loadComplete.
I changed loadComplete() to gridComplete() and observed the same behaviour.
In stepping through the code, I observe this is a problem selecting the object.
I added another column to my database query to return a blank 'act' column with the result that I had a grid column defined.
This is the right way.
Reagrds
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?
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS