jquery - How to make Jqgrid frozen column word-wrap -


i using latest jqgrid bundle 4.4.5. want make header column word-wrap. read oleg answer seem it's not working latest jqgrid.

the error messages appear in firebug "$grid[0]._complete" undefined , when resize column error "this.grid undefined".

is there solution make work?

edit : after change $grid.jqgrid('setfrozencolumns'); $grid.triggerhandler("jqgridaftergridcomplete"); when resize column, frozen div column isn't resize too.

note: change "this.grid" using local variabel. var grid = this.grid || this;

here image link.

starting version 4.3.2 jqgrid supports events allows register multiple callbacks (event handler). old internal callbacks _complete removed.

instead of line in the demo

$grid[0].p._complete.call($grid[0]); 

you can use now

$grid.triggerhandler("jqgridaftergridcomplete"); 

updated: current version of jqgrid have bug in the line. used this instead of ts:

if($.isfunction(p.resizestop)) { p.resizestop.call(this,nw,idx); } 

instead of

if($.isfunction(p.resizestop)) { p.resizestop.call(ts,nw,idx); } 

the event jqgridresizestop don't have problem. suggest use instead:

$grid.bind("jqgridresizestop", function () {     resizecolumnheader.call(this);     fixpositionsoffrozendivs.call(this);     fixgboxheight.call(this); }); 

see the modified demo.

updated 2: posted the bug report. can inform the fix applied in main code of jqgrid on github.

just published version 4.5.0 includes fix.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -