Problem with toggling column visibility and sorting
I have a small issue that I am trying to figure out.
Here is the code (you can put it in basic.html after document.write(obj).
obj.onSelectorClicked = function(event, index) {
//Hide rows below current one
obj.setRowCount(parseInt(index) + 1);
obj.refresh();
}
obj.onCellClicked = function(event, index) {
// Show all the rows
obj.setRowCount(myData.length);
obj.refresh();
}
As you can see I hide rows below selected on the header click and show them again on cell click. Works great.
The problem is when I sort the column while the data is hidden I get NaN for the data that was hidden when I attempt to show it again.
Any ideas?
Thanks.
Here is the code (you can put it in basic.html after document.write(obj).
obj.onSelectorClicked = function(event, index) {
//Hide rows below current one
obj.setRowCount(parseInt(index) + 1);
obj.refresh();
}
obj.onCellClicked = function(event, index) {
// Show all the rows
obj.setRowCount(myData.length);
obj.refresh();
}
As you can see I hide rows below selected on the header click and show them again on cell click. Works great.
The problem is when I sort the column while the data is hidden I get NaN for the data that was hidden when I attempt to show it again.
Any ideas?
Thanks.
Alex
November 14,