telemmaite
16 Mar 2012, 12:51 PM
Hi to every one i have one quick question that does not require posting any code or maximum 2 lines.
I have a simple grid ( any grid from the examples will do) I bind an itemkeydown event to the grid.view by using
viewConfig: {
listeners:{
itemkeydown:function(){
console.log('adasdasd');
}
},.
}
This works nicely BUT only if a row of the grid is selected at least once! Then i can deselect the row and the event still works...but unless i select a row (focusing a row is not working ) I cannot get it to work :(
Any ideas how to make it work I tried focusing the grid.getView().el with focus() the only way i see it working is by quickly selecting deselecting a row of the grid at rendering to get it working...but shouldn`t it work right out of the box ?
I have a simple grid ( any grid from the examples will do) I bind an itemkeydown event to the grid.view by using
viewConfig: {
listeners:{
itemkeydown:function(){
console.log('adasdasd');
}
},.
}
This works nicely BUT only if a row of the grid is selected at least once! Then i can deselect the row and the event still works...but unless i select a row (focusing a row is not working ) I cannot get it to work :(
Any ideas how to make it work I tried focusing the grid.getView().el with focus() the only way i see it working is by quickly selecting deselecting a row of the grid at rendering to get it working...but shouldn`t it work right out of the box ?