Hi Team,
I am new to Extjs.I am just exploring the framework.I am trying to add a columns dynamically from an API to a grid.
Whenever a user scrolls to the end i have to add columns dynamically.

For that i have used the below code.It listens to scroll events both horizontal as well as vertical.I need to listen only horizontal scroll that too when the scroll bar reaches the end of the grid.Is there any way we can listen to only horizantal scroll alone.

grid.getView().getEl().on('scroll', function(element, dom,event) {
// console.log('scolling event captured successfully')
console.log('scolling event element successfully',element)
console.log('scolling event dom successfully',dom)
console.log('scolling event event successfully',event)


} )