[CLOSED] Loading data in store take too long. browser hangs.

Page 1 of 3 123 LastLast
  1. #1

    [CLOSED] Loading data in store take too long. browser hangs.

    Hi,

    I try to load the stroes data in the javascript using

    
       store.clearData();                     store.loadData(groupedResult[i].Values, false);                     store.commitChanges();
    when i do this my browser hangs, and tells there is a long running script which caused this... help me out asap
    Last edited by Daniil; Nov 22, 2011 at 8:42 AM. Reason: [CLOSED]
  2. #2
    Hi,

    How big is a "groupedResult"?
  3. #3
    it just contains only 50 rows, but each record has 40 fields
  4. #4
    What browser do you test with? I guess IE, but what is the version?

    Anyways, IE (especially < 9) has too low JavaScript engine to work with such data, therefore I'm not sure we can help.

    Though please try the following code:
    store.suspendEvents();
    store.loadData(groupedResult[i].Values, false);
    store.resumeEvents.defer(10, store);
    store.commitChanges.defer(20, store);
  5. #5
    kindly give me a solution asap.. we have deployment.. time matters
  6. #6
    suspending events improves the speed, this will cause any listeners attached to fail right.. any help. please
  7. #7
    Quote Originally Posted by speedstepmem3 View Post
    this will cause any listeners attached to fail right
    Please provide more details.
  8. #8
    And how does "groupedResult[i].Values" look? Is it a single record?
  9. #9
    no groupedresult[i].values is an array. each object in the array has 40 properties. I also have another issue, GridPanel does not force fit and show scrollbar even though i give forcefit = true, autoscroll = true. But the crazy thing is after the grid gets displayed when i click on any header the gridpanel gets fit and scroll bar displays.
  10. #10
    Quote Originally Posted by speedstepmem3 View Post
    no groupedresult[i].values is an array. each object in the array has 40 properties.
    Then I can suggest to divide this array by two. Load the first part, then load the second part with some delay, like 100 ms.
    http://docs.sencha.com/ext-js/3-4/#!...n-method-defer


    Quote Originally Posted by speedstepmem3 View Post
    I also have another issue, GridPanel does not force fit and show scrollbar even though i give forcefit = true, autoscroll = true. But the crazy thing is after the grid gets displayed when i click on any header the gridpanel gets fit and scroll bar displays.
    Does it occur after .loadData()?
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: Dec 19, 2011, 1:54 AM
  2. [CLOSED] Bug when open window, loading mask hangs
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 14, 2011, 6:23 PM
  3. [CLOSED] Loading data from server to store by javascript
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 21, 2011, 4:44 PM
  4. Replies: 2
    Last Post: Mar 09, 2010, 12:55 PM
  5. Replies: 10
    Last Post: Nov 20, 2008, 3:17 PM

Posting Permissions