How to temporarily disable sorting or paging
How to temporarily disable sorting or paging
Hi. We're currently using datatables (1.9.4) with client side paging and sorting.
A further use of the table is to allow a row to be 'expanded' to enable an in-depth edit of the content represented by a row. To do this we're using the 'fnOpen' and 'fnClose' functions. This is all fine.
We're only allowing a user to edit a single row at a time using the above mechanism, therefore the ability to expand a second row has been disabled. The problem is that once a row has been expanded, a user is still free to re-sort or change pages which may result in the expanded row being off-screen and difficult to find, especially when there are many pages.
What we would like to do is temporarily disable sorting and paging whilst a row is expanded. Is it possible to do this?
If so, could someone please provide details.
I've searched on numerous occasions for a way with not success, so any help would be greatly appreciated. I find it difficult to believe that this feature hasn't been required on other uses.
Thanks in advance for any answers.
A further use of the table is to allow a row to be 'expanded' to enable an in-depth edit of the content represented by a row. To do this we're using the 'fnOpen' and 'fnClose' functions. This is all fine.
We're only allowing a user to edit a single row at a time using the above mechanism, therefore the ability to expand a second row has been disabled. The problem is that once a row has been expanded, a user is still free to re-sort or change pages which may result in the expanded row being off-screen and difficult to find, especially when there are many pages.
What we would like to do is temporarily disable sorting and paging whilst a row is expanded. Is it possible to do this?
If so, could someone please provide details.
I've searched on numerous occasions for a way with not success, so any help would be greatly appreciated. I find it difficult to believe that this feature hasn't been required on other uses.
Thanks in advance for any answers.
This discussion has been closed.
Replies
Allan