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

Closed
ghost opened this Issue Jun 8, 2012 · 0 comments

Projects

None yet

1 participant

@ghost
ghost commented Jun 8, 2012

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 Sep 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment