Keeping client side CSS changes on postback?
Keeping client side CSS changes on postback?
Hi,
Still pretty new to JQuery, so hopefully this makes sense.
I have a datatable that highlights each row on click, however on postback the highlighting is not keeped.
i have implemented as follows:
[code]
$(document).ready(function () {
$('#example').dataTable({
"bStateSave": true
});
$('#example tbody tr').click(function () {
$(this).toggleClass('row_selected');
});
});
[/code]
From my understanding the row_selected class is added on the client side, so on postback it is forgotten.
StateSave works fine for paging/sorting... is there a simple way to get this working?
Thanks
Still pretty new to JQuery, so hopefully this makes sense.
I have a datatable that highlights each row on click, however on postback the highlighting is not keeped.
i have implemented as follows:
[code]
$(document).ready(function () {
$('#example').dataTable({
"bStateSave": true
});
$('#example tbody tr').click(function () {
$(this).toggleClass('row_selected');
});
});
[/code]
From my understanding the row_selected class is added on the client side, so on postback it is forgotten.
StateSave works fine for paging/sorting... is there a simple way to get this working?
Thanks
This discussion has been closed.