I have a problem with the new version keytable
I have a problem with the new version keytable
marcondo
Posts: 13Questions: 3Answers: 0
My old code....
keysTable = new $.fn.dataTable.KeyTable(oTable);
keysTable.event.action( null, null, function( node ) {
//debugger;
//return false;
if(node.getAttribute('class').indexOf('xcl'))
{
//Blur focus
keysTable.fnBlur();
$(node).EditCell();
}
event.preventDefault();
} );
--- New code
keysTable = $(oTable).DataTable( {
keys: true
} );
keysTable.on( 'key', function ( e, datatable, key, cell, originalEvent ) {
//debugger;
//return false;
if(node.getAttribute('class').indexOf('xcl'))
{
keysTable.Blur();
$(e).EditCell();
}
originalEvent.preventDefault();
} );
But not me any solution work? I find relatives examples
Thanks in advance
This discussion has been closed.
Answers
Sorry
node=e
if(e.getAttribute('class').indexOf('xcl'))
Is 'key' a valid event? I thought it was 'keypress', 'keyup', 'keydown'.
If key is a valid event, what is the problem?
I can not find documentation that is 'key'
e is de old event?
Then why are you trying to apply a function to that event? Line 4 of your new code is not going to do anything.
Da igual hay nada Funciona volvere a la anterior versión, gracias
I got this to work to full .. but...
Now I have a problem with fnBlur does not work as before and tested blur () of cell either not going on
any suggestions? Tanks