Categories | Question details Back To List | ||
How to show the sort mark in the correct position when I change the cloumn's width in the dhtmlgrid. Hi team The sort mark "△" / "▽" is always remains the same position When I change the cloumn's width in the dhtmlgrid. Some times the mark will be displayed in the other column nearly. Thanks. Answer posted by Support on Dec 16, 2008 04:43 Issue must be already fixed in latest version of dhtmlxgrid ( 2.0 build 81107 ) If you are using older version of dhtmlxgrid -you can try to add next code grid.attachEvent("onResizeEnd",function(){ grid.setSortImgState(true); return true; }); Answer posted by Kurt on Dec 16, 2008 05:06 Thanks very much. I got another problem after the code was added. I can change the width freely when the mark is "△". But the mark ("▽") will be changed to "△" when I change the width of the column,The order of the records has not changed.
Answer posted by Support on Dec 16, 2008 08:33 Please try to use the next code instead of previous one, it must work correctly in all cases grid.attachEvent("onResizeEnd",function(){ grid.setSortImgPos(); return true; }); Answer posted by Kurt on Dec 16, 2008 18:36 Thanks. :) |