is to swap the columns table, am i right?[/quote]
Now i did it .. but i can only mov the <tbody>, the <thead> still remains at the same position
its like this:
Code:
function swapCol(id){
var flex = $('#'+id).flexigrid({});
flex.moveColumn(1,9);
}
$.fn.moveColumn = function(c1,c2) { // function to test
return this.each( function() {
if (this.grid) this.grid.switchCol(c1,c2);
});
}; //end test