Key table and row grouping

Key table and row grouping

predrag.musicpredrag.music Posts: 8Questions: 0Answers: 0
edited March 2010 in KeyTable
Hello,

I have a problem with keytable and rowgrouping. For some reason when row grouping iz on i can only go through first column with my arrows.

I use latest version of keytable 1.1.3 and latest version of datatables 1.6.2

In my fnDrawCallback i have something like this:

[code]
"fnDrawCallback": function (oSettings) {
var keys = new KeyTable( {
"table": document.getElementById('work_log')
} );
keys.event.action( null, null, function (nCell) {
keys.block = true;
$('#work_log tbody td').editable( '/work_log/updateWorkLog', {
indicator : '',
onblur: 'submit',
type: 'clear_input',
tooltip: 'Klikni...',
submitdata : function() {
return {
id : $(this).parent().attr("id"),
col: $(this).parent().children().index($(this))
};
},
onreset: function(){
setTimeout( function () {keys.block = false;}, 0);
},
callback: function( sValue, y ) {
oTable.fnDraw();
},
height: "14px"
});
setTimeout( function () { $(nCell).click(); }, 0 );
});

$('td img', oTable.fnGetNodes() ).each( function () {
$(this).click( function () {
var nTr = this.parentNode.parentNode;
if ( this.src.match('details_close')){
this.src = "images/dataTables/details_open.png";
oTable.fnClose( nTr);
$(this).parent().parent().next().remove();
}else{
this.src = "images/dataTables/details_close.png";
oTable.fnOpen( nTr, fnFormatDetails(nTr), 'details' );
}
});
});
if ( oSettings.aiDisplay.length == 0 ){
return;
}
var nTrs = $('#work_log tbody tr');
var iColspan = nTrs[0].getElementsByTagName('td').length;
var sLastGroup = "";
for ( var i=0 ; i

Replies

  • keturnketurn Posts: 18Questions: 0Answers: 0
    ...just ran in to this one myself. Taking a look at it now.
  • keturnketurn Posts: 18Questions: 0Answers: 0
    one-line patch at http://github.com/DataTables/KeyTable/pull/2

    In the _fnKeys function: iTableWidth = jQuery(_nOldFocus).siblings('td').length + 1
This discussion has been closed.