Results 1 to 2 of 2

Thread: Batch add to panel

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    94

    Default Batch add to panel

    I have a need to add at times ~10 new elements to a single panel. This have proven to be very slow

    I am using the .add() method on the parent panel. To speed this up I have found I can just create an entirly new extjs container and build the rest inside of this. Then I just have to call add once. This is ~10+sec speedup. However its kind of a hack I think.

    Is there a way to batch adds?

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    101
    Answers
    4

    Default

    One thing you could try is adding the items to the panel in one add call like so:

    Code:
    panel.add([item1, item2, item3, etc]);

Posting Permissions

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