Hello Tony,
Currently jqGrid use in the pager the same names 'first','prev','next','last','sp_1' and 'jqgh_'+colname for the ids. It can follow to id duplicates. Fo fix the problem I suggest to change lines 1525, 1545-1546, 1548-1549, 1552-1553, 1555-1556, 1733,1735, 1792-1795, 2037 and 3000 to the following:
… // 1525:
$('#sp_1_'+$.jgrid.jqID(ts.p.id),pgboxes).html($.fmatter ? $.fmatter.util.NumberFormat(ts.p.lastpage,fmt):ts.p.lastpage);
… // 1545-1546
$(“#first_”+$.jgrid.jqID(ts.p.id)+”, #prev_”+$.jgrid.jqID(ts.p.id),ts.p.pager).addClass('ui-state-disabled').removeClass('ui-state-hover');
if(ts.p.toppager) { $(“#first_t_”+$.jgrid.jqID(ts.p.id)+”, #prev_t_”+$.jgrid.jqID(ts.p.id),ts.p.toppager).addClass('ui-state-disabled').removeClass('ui-state-hover'); }
… // 1548-1549
$(“#first_”+$.jgrid.jqID(ts.p.id)+”, #prev_”+$.jgrid.jqID(ts.p.id),ts.p.pager).removeClass('ui-state-disabled');
if(ts.p.toppager) { $(“#first_t_”+$.jgrid.jqID(ts.p.id)+”, #prev_t_”+$.jgrid.jqID(ts.p.id),ts.p.toppager).removeClass('ui-state-disabled'); }
… // 1552-1553:
$(“#next_”+$.jgrid.jqID(ts.p.id)+”, #last_”+$.jgrid.jqID(ts.p.id),ts.p.pager).addClass('ui-state-disabled').removeClass('ui-state-hover');
if(ts.p.toppager) { $(“#next_t_”+$.jgrid.jqID(ts.p.id)+”, #last_t_”+$.jgrid.jqID(ts.p.id),ts.p.toppager).addClass('ui-state-disabled').removeClass('ui-state-hover'); }
… // 1555-1556:
$(“#next_”+$.jgrid.jqID(ts.p.id)+”, #last_”+$.jgrid.jqID(ts.p.id),ts.p.pager).removeClass('ui-state-disabled');
if(ts.p.toppager) { $(“#next_t_”+$.jgrid.jqID(ts.p.id)+”, #last_t_”+$.jgrid.jqID(ts.p.id),ts.p.toppager).removeClass('ui-state-disabled'); }
… // 1733:
if(ts.p.pginput===true) { pginp= “
“;}
… // 1735:
var po=[“first”+tp+”_”+$.jgrid.jqID(ts.p.id),”prev”+tp+”_”+$.jgrid.jqID(ts.p.id), “next”+tp+”_”+$.jgrid.jqID(ts.p.id),”last”+tp+”_”+$.jgrid.jqID(ts.p.id)]; if(dir==”rtl”) { po.reverse(); }
… // 1782:
$(“#first”+tp+”_”+$.jgrid.jqID(ts.p.id)+”, #prev”+tp+”_”+$.jgrid.jqID(ts.p.id)+”, #next”+tp+”_”+$.jgrid.jqID(ts.p.id)+”, #last”+tp+”_”+$.jgrid.jqID(ts.p.id),”#”+pgid).click( function(e) {
… // 1792-1795:
if( this.id === 'first'+tp+”_”+$.jgrid.jqID(ts.p.id) && fp ) { ts.p.page=1; selclick=true;}
if( this.id === 'prev'+tp+”_”+$.jgrid.jqID(ts.p.id) && pp) { ts.p.page=(cp-1); selclick=true;}
if( this.id === 'next'+tp+”_”+$.jgrid.jqID(ts.p.id) && np) { ts.p.page=(cp+1); selclick=true;}
if( this.id === 'last'+tp+”_”+$.jgrid.jqID(ts.p.id) && lp) { ts.p.page=last; selclick=true;}
… // 2037:
thead += “
… // 3000:
$(“[id^=jqgh_“+$.jgrid.jqID(ts.p.id)+”]”,thecol).empty().html(nData).append(ico);
Additionally I suggest to remove from the lines 2031 and 2032 the sort=”desc” and sort=”asc”
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top