1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    11
    Vote Rating
    0
    av.personals is on a distinguished road

      0  

    Question Tracking the Scroll and managing huge data in EditorTreeGrid

    Tracking the Scroll and managing huge data in EditorTreeGrid


    Hi All,

    We have a requirement in which we need to load around 4000 records in two separate editor tree grids and highlight the differences in each record after doing comparison using values from a particular column in each tree . Everything's fine with a limited number of records but when we go up to 4000 records or more we have huge issues with the data. The tree grid takes around 10 minutes to render as it includes expanding all nodes, calculations to construct the parent child relation and then the highlight.

    One solution I considered was trying a similar approach to Live Grid but for the highlighting logic we need all the records as the third record in Grid 'A' may match the 115th record in Grid 'B'.Live Grid would not have the previous selections when it brings the next set of records.

    Considering the above, what would be the best way of achieving this? Can I just keep adding new records to the store as I scroll down ? I think it could be done by tracking the scroll position without using the Live Grid but am not sure how to achieve this. I'm not even sure if it's the right approach . Could anybody provide me some sample code to add elements to the store when user reaches the end of vertical scroll in EditorTreeGrid or suggest a better way to achieve this? My trial to add a scroll listener and a listener somehow doesn't kick in .

    Also, the Live Grid uses List Store whereas I use the EditorTreeGrid . How do I effectively populate it to a tree store? I used to do getAllModels before and populate them into the TreeStore . Is it the right way to do this ?

  2. #2
    Sencha User
    Join Date
    Jan 2010
    Posts
    11
    Vote Rating
    0
    av.personals is on a distinguished road

      0  

    Default


    Not I'm trying to add elements dynamically to the treeGrid as I scroll down but am not sure how to get the scroll positon. Here's the code below .

    myTree.addListener(Events.BodyScroll,new Listener<GridEvent>() {

    @Override
    public void handleEvent(GridEvent be) {

    //How can I find if I'm at the end of the scroll position here ?

    }
    });

Similar Threads

  1. Loading Tree With huge data
    By yogu13 in forum Ext GWT: Discussion
    Replies: 5
    Last Post: 3 May 2011, 9:22 PM
  2. huge json data in extjs tree control - issue
    By vmb in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 6 Jan 2010, 10:51 AM
  3. ExtJS grid , huge data problem
    By jankshtt in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 22 Sep 2009, 2:19 PM
  4. combobox with huge data
    By mnask79 in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 19 Feb 2009, 3:47 AM
  5. How to display huge data in Combo box drop down
    By bluesapphire in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 13 Aug 2008, 2:55 PM

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar