keyboard navigation required for datatables

keyboard navigation required for datatables

dyapasrikanthdyapasrikanth Posts: 20Questions: 0Answers: 0
edited April 2011 in KeyTable
I am displaying table on modal window with initial cursor position at search box to get required data from server.
After getting the data when i press the down arrow in keyboard the ctrl should come to first row if select any one of the row with up and down arrow and press enter the first td value of select row should be captured.
I mean everything should work with keyboard.
Is it possible. Here is my code.
[code]
$("#customerdata tbody").click(function(event) {
$(oTable.fnSettings().aoData).each(function (){
$(this.nTr).removeClass('row_selected');
});
$(event.target.parentNode).addClass('row_selected');
var custid=$(event.target.parentNode).find('td:first').text();
if(custid!="No data available in table"){
$('#cust_id').val(custid);
$('#customerdata_filter input').val('');
$("#editmodal").dialog("close");}
});
oTable = $("#customerdata").dataTable({
"bJQueryUI": true,
"bLengthChange": false,
"bPaginate": false,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"sScrollY": "200px",
"sAjaxSource": "/SrikanthTest/customer.do?type=showMinCustomerDetails"
});
[/code]
This discussion has been closed.