Forum
using 4.1.2
I have discovered some wierd result in FormEditing when using a grid which has had the columnsRemapped ( i unhide, resort, rehide columns in that routine ). The error coming back is
g.p.colModell[i] is undefined jquery.jqGrid.src.js
5389 - for( i =0, len=g.p.colModel.length;i<len; i++){
if(g.p.colModel[i].name==valref) {
edtrul = g.p.colModel[i].editrules;
valref = i;
try { nm = g.p.colModel[i].formoptions.label; } catch (e) {}
break;
}
If I turn off remapping the columns the colModel object does not contain a spurious 0 undefined item at the top; however with colModel remapping enabled the g.p.colModel looks like
That 0 undefined is appearing from a remap ;
Hold up a moment though : I examined the rv value of remap and set it to 0-count of columns ( -1 ) and it worked correctly . Which means the value of rv if it contains more indices than the columns your using then it makes a problem for colModel[i] technically leaving the fault -- my bad ! lets close this while I go away and drink some more coffee; thanks for helping though.
Most Users Ever Online: 715
Currently Online:
32 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66