When you refresh a page - is there a way to retain the previous table length?
When you refresh a page - is there a way to retain the previous table length?
Hello,
I'm relatively new to DataTables. I definitely love it.
I understand how you can change the default length of a table - by editing the iDisplayLength configuration variable.
Is there any way to allow the app to save the last length the user selected? For example, if the default is say 20, but the last length selected by the user is 30, I would like the table length to still be 30 after the user re-freshes the page.
Is there any way to do this?
thanks in advance,
Tim
I'm relatively new to DataTables. I definitely love it.
I understand how you can change the default length of a table - by editing the iDisplayLength configuration variable.
Is there any way to allow the app to save the last length the user selected? For example, if the default is say 20, but the last length selected by the user is 30, I would like the table length to still be 30 after the user re-freshes the page.
Is there any way to do this?
thanks in advance,
Tim
This discussion has been closed.
Replies
Allan
TypeError: oColumn is undefined
[Break On This Error]
for ( j=0, jLen=oColumn.asSorting.length ; j
Allan
It happens the very moment I set bStateSave option to true. Also, it happens with pretty much any table - even a simple one like this:
Column 1
Column 2
Data 1
Data 2
As soon as I set bStateSave to true; it happens.
Has this ever happened to anyone before?
Thanks,
Tim