KeyTable Row Navigation for Current Page Only

KeyTable Row Navigation for Current Page Only

corleone1218corleone1218 Posts: 8Questions: 1Answers: 0
edited November 2016 in Free community support

Hello,

I would like to ask if I can use keytable plugin for navigating rows using arrow up and down keys but only for the current page? Because currenly, if im already on the last row and pressess downkey, it wiill navigate to the next page. Can i prevent this?

Btw, i dont want to disable paging, i just want to use keydown navigation only for the current page.

Here is my current Code:
'''
$('#dt').DataTable({
'pageLength': 5,
'jQueryUI':true,
'lengthMenu': [5, 100, 200, 300, 500]
}) .on('key-focus', function (e, datatable, cell, originalEvent) {
var row = cell.index().row;
ShowDetails(row);
});
'''
Many Thanks

This discussion has been closed.