Results 1 to 3 of 3

Thread: Tree Scroll bar is Reseting with Drag and Drop plugin

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default Tree Scroll bar is Reseting with Drag and Drop plugin

    Hi,
    I have a tree with scrollbar and Drag and Drop plugin. When i try to click any of the nodes after scrolling to the bottom, the scroll bar resets back to the top and does not allow me to click the nodes. But without the Drag and Drop Plugin, the tree is working fine and i am able to click the nodes at the bottom by scrolling down.

    Code:
           Ext.create('Ext.tree.Panel', {
            hideHeaders: true,
            rootVisible: true,
            scroll: false,
            border:false,
            //collapsible: false,
            animate:false,
            //enableDD:   true,
            tbar: toolBar,
            id:'exttree1',
            autoHeight:true,
            viewConfig: {
               style   : { overflow: 'auto', overflowX: 'hidden' },
               forceFit:true,
               plugins: [{
                   ptype: 'treeviewdragdrop'
               }]
           },
            plugins :  Ext.create('Ext.ux.FitToParent', {}),
            autowidth:true,
            root: {
                iconCls:'testerRootIcon',
                nodeType: 'async',
                text: 'Test Deck',
                draggable: false,
                id: 'TESTERROOT',
                expanded: true,
                listeners: {
                    itemclick : function(){
                            parent.parent.frames["mainFrame"].location.href="testerrightpane.exc?topid=0&pid=0&hid=0&lname=nil&lseq=1&pagecount=1&sessionValue=true&pageName=hierarchy&refresh=true&startend=true&setValue=true";
                        }
                }
                },
                
            renderTo: 'tree-example',
            store: Ext.create('Ext.data.TreeStore', {
               proxy: {
                   type: 'ajax',
                   url: 'getExtTree.do?id=234'
               },
               reader: {
                   type: 'json'
                  }
    
           }),
            collapsible: false,tree.jpg

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Sounds like the view is refreshing. What Ext JS 4.x.x version are you using and browser?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Hi mitchellsimoens,
    I am using the 4.1 version of Ext Js and i tried this in IE9 as well as 8...
    As u said i think my view is getting refreshed. Pls tell me where i am going wrong.

    Thanks,
    SenthilKumar

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •