Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Searching breaks if column name != index (fix inside) #331

Closed
ghost opened this Issue · 0 comments

1 participant

@ghost

When setting up the jqGrid if the columns in colModel have different name and index values searches will not fire

grid.custom.js
-151: v = $("#gs_"+$.jgrid.jqID(this.name), (this.frozen===true && $t.p.frozenColumns === true) ? $t.grid.fhDiv : $t.grid.hDiv).val();
+151:v = $("#gs_"+$.jgrid.jqID(nm), (this.frozen===true && $t.p.frozenColumns === true) ? $t.grid.fhDiv : $t.grid.hDiv).val();

-203: $("#gs_"+$.jgrid.jqID(this.name)+" option",(this.frozen===true && $t.p.frozenColumns === true) ? $t.grid.fhDiv : $t.grid.hDiv).each(function (i){
+203:$("#gs_"+$.jgrid.jqID(nm)+" option",(this.frozen===true && $t.p.frozenColumns === true) ? $t.grid.fhDiv : $t.grid.hDiv).each(function (i){

-221: $("#gs_"+$.jgrid.jqID(this.name),(this.frozen===true && $t.p.frozenColumns === true) ? $t.grid.fhDiv : $t.grid.hDiv).val(v);
+221: $("#gs_"+$.jgrid.jqID(nm),(this.frozen===true && $t.p.frozenColumns === true) ? $t.grid.fhDiv : $t.grid.hDiv).val(v);

-327: $("select",self).attr({name:cm.index || cm.name, id: "gs_"+cm.name});
+327: $("select",self).attr({name:cm.index || cm.name, id: "gs_"+cm.index || cm.name});

-356: $(elem).attr({name:cm.index || cm.name, id: "gs_"+cm.name});
+356: $(elem).attr({name:cm.index || cm.name, id: "gs_"+cm.index || cm.name});

-391: $(thd).append("");
+391: $(thd).append("");

@tonytomov tonytomov closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.