Eladerezador
Eladerezador

Reputation: 1301

DataTable - Disabled pagination

I need to do the following:

$("#example").on( 'page.dt', function () 
{
    if ($("#txtField6").length){    
        alert("You must finish operation new/edit. The pagination is not posible");
        //when i press the buttons navigation, if this condition is met, I must stay on the same page, what can i do it?
    }
});

Upvotes: 3

Views: 99

Answers (1)

Eladerezador
Eladerezador

Reputation: 1301

The solution:

tbLoc.page(page.info());

Upvotes: 1

Related Questions