Is it possible to clear the state cookie for a datatable?
Is it possible to clear the state cookie for a datatable?
DavidBoomer
Posts: 21Questions: 0Answers: 0
[this is in a asp.net c# application]
I need to programmatically clear the filter on a datatable (i.e., show all records), based upon a value in a server side session variable. I am accomplishing this now by calling a javascript function from the server side, which has a setTimeOut function that calls another javascript function that clears the filter and rebinds the data (when I call the clear filter function directly, the table has not yet been created and an error is raised about aoData not existing, I believe). Problem is, apart from it being a kluge, is that the filtered table flashes momentarily before it is cleared. The only idea I've come up with so far is to clear the datatable cookie storing the table state. Is this possible, or is there some other solution?
I need to programmatically clear the filter on a datatable (i.e., show all records), based upon a value in a server side session variable. I am accomplishing this now by calling a javascript function from the server side, which has a setTimeOut function that calls another javascript function that clears the filter and rebinds the data (when I call the clear filter function directly, the table has not yet been created and an error is raised about aoData not existing, I believe). Problem is, apart from it being a kluge, is that the filtered table flashes momentarily before it is cleared. The only idea I've come up with so far is to clear the datatable cookie storing the table state. Is this possible, or is there some other solution?
This discussion has been closed.