Existing Pagination Controls

Existing Pagination Controls

SacrilegeSacrilege Posts: 1Questions: 0Answers: 0
edited August 2012 in General
I'd like to know if it is possible to use DataTables with existing pagination controls.

What I would like to do is initially render an already paged grid with controls that perform a full post back to support clients with JS disabled. If DataTables could then utilize those same controls and "AJAXify" them that would be perfect. However, It looks like right now maybe my only option is to hide those controls at the same time I run the DataTables script.

Can someone confirm whether this is my only viable option right now to meet this requirement?

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    It is possible, but you'd need to use the fnPageChage API method with your own event listeners on the exisiting pagination controls - DataTables won't automatically hook into the exisiting HTML I'm afraid (that would be horribly complex :-) !).

    Allan
This discussion has been closed.