Jump to content

Horizontal scroll jump


Ario.Paxaz

Recommended Posts

  • 2 months later...

Hello
You can add this code to the main form script.

Ext.override(Ext.grid.Panel, {
    listeners:{
      'cellmousedown': function (sender, td, cellIndex, record, tr, rowIndex, e, eOpts){
         if ((cellIndex < 2) && (sender.grid.getView().el.dom.scrollLeft < 0)){
           sender.grid.getScrollable().scrollTo({x: 0})
         }
      },
      scope:this
    } 
});

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...