disabling column rank
how to disable user sorting on a selected column or two?
Thank you.
warren
October 7,
btw ... I tried this code:
obj.setColumnCount(7);
obj.setHeaderText(columns);
var _sort = obj.sort;
obj.sort = function(index, direction){
if (index == 3){
return;
}
else {
_sort.call(this, index, direction);
}
}
but the grid will still sort on all columns ... what am I missing?
Thank you.
warren
October 7,
// disable sort grid
obj.onHeaderClicked = function(event, index){
if (index == 3 || index==4 || index==5){
return true; // cancels further processing
};
else{
return false;
}
}
October 8,
the above code works in IE8 but disables the grid view when used with FF. thoughts? Thank you.
warren
October 12,
Note:
remove ";" before "else"
}
else
return false;
}
}
October 12,
Thank you. I did that. but the columns remain sortable in IE & FF. other statements? positioning? Thank you.
document.write(obj);
// disable sort grid
obj.onHeaderClicked = function(event, index){
if (index == 3 || index==4 || index==5){
return true; // cancels further processing
}
else{
return false;
}
}
warren
October 14,