jqGrid FrozenColumns changing Column style Resets back -
i have used solution posted in the answerto change mouse pointer on jqgrid
but having issue. when column frozen mouse pointer cursor instead of default 1 set in code.
i see changing frozen column pointer default @ method somewhere being reverted original css.
at time wrote the answer jqgrid didn't had frozen columns feature.
if use free jqgrid 4.8 (see readme , wiki) don't need anything. non-sortable columns have correct cursor. see the demo.
if need use old jqgrid version can following
var p = mygrid[0].p, cm = p.colmodel, $frozenheaders = $(mygrid[0].grid.fhdiv) .find(".ui-jqgrid-htable>thead>tr.ui-jqgrid-labels>th.ui-th-column"); $.each(mygrid[0].grid.headers, function(index, value) { var cmi = cm[index], colname = cmi.name; if(!cmi.sortable && colname !== "rn" && colname !== "cb" && colname !== "subgrid") { $("div.ui-jqgrid-sortable",value.el).css({cursor:"default"}); $($frozenheaders[index]).children("div.ui-jqgrid-sortable") .css({cursor:"default"}); } });
the corresponding demo can found here.
Comments
Post a Comment