Allan, I want to use KeyTable navigation with server-side AjaxSource data. I am unable to do it, checked the forum but nothing found interesting. Please help/guide.
I will look into as soon as I can. Paid priority support and other tasks have taken priority. If you would like to continue a patch it fix the issue, that would be very welcome, or pick up priority support so I can prioritise it over other work: http://datatables.net/support . Otherwise, I will try to fix it as soon as I can, other work permitting.
Replies
Allan
I am already using this function and initializing keyTable in fnInitComplete. It focuses on the line but when I press any key it just lost focus.
I am writing this code:
[code]
var myTable = $('#example').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "myPage.php",
"fnInitComplete": function(oSettings, json) {
var keys = new KeyTable({
"table": document.getElementById("example"),
"datatable": myTable
});
keys.event.action(null, null, function (e) { $(e).closest('tr').trigger('click'); keys.block = true; });
}
});
[/code]
Allan
please look into it and reply ASAP.
Thanks in advance.
I've noticed a thing, clicking on any row reset the table and goto page 1.
Thanks for the test case though. I will take a deeper look as soon as I can - probably sometime next week, as I've already fully booked this week.
Allan
Its more than 15 days. You need to sort this out please.
Allan
[code]
_oDatatable.oApi._fnDraw( oSettings );
[/code]
it is causing the table to redraw on each focus, and since you are using server-side processing that means an Ajax request.
I'm planning to rewrite KeyTable in a few weeks time, so I will look at solving this at that point.
Allan