How to temporarily disable sorting or paging

How to temporarily disable sorting or paging

anewsomeanewsome Posts: 1Questions: 0Answers: 0
edited July 2013 in General
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.

Replies

  • bigerockbigerock Posts: 9Questions: 0Answers: 0
    did you ever find a solution to this? i have a similar situation. thanks.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Currently no - sorry - there is no way to do this other than to unbind the event listeners.

    Allan
This discussion has been closed.