Hi,
In debuging issues I was having with sorting table, I had to make some code changes. Here is a list of what I had to modify in grid.base.js:
- grid.headers[k] is undefined in the loop in two places. I had to place a null / undefined check:
- Line 899: $(this).css(“width”,grid.headers[k].width+”px”);
- Line 1576: $(this).css(“width”,self.grid.headers[k].width+”px”);
- Appending sorted row to grid was causing my Firefox to freeze, chew up tons of memory and report unruly script. The problem was happening on line 910: $('tbody',ts.grid.bDiv).append(row);. Since I am not very good with Javascript, I fixed this issue by changing line 903 onwards. Changes are as follows:
- Previously: