1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    9
    Vote Rating
    0
    son is on a distinguished road

      0  

    Default final resize event in gridpanel

    final resize event in gridpanel


    Is it possible to detect the final resize event on initial gridpanel rendering?
    I am doing jsonstore data loads on the resize events.
    But on initial rendering the resize event is called multiple times and I want to call the load on the final resize event.
    Cannot put it in render event because I need it to be in the resize event (when user resizes the grid and I want to repopulate the grid). Just on the initial load I would like to avoid multiple data loads.

  2. #2
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,732
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      0  

    Default


    Why not use the 'afterrender' event for the initial loading, and in that function handler attach a listener for any future resize events?

  3. #3
    Ext User
    Join Date
    Apr 2010
    Posts
    9
    Vote Rating
    0
    son is on a distinguished road

      0  

    Default afterrender occurs before resize

    afterrender occurs before resize


    I tried it, but the afterrender event gets fired before the resize events...
    There are total of three attempts to load data. afterrender, resize, resize...
    Perhpas it is the way I am doing resizing... but the grid of interest in contained within other panels within a viewport...

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Add the listener in the afterlayout event of the grid's Contaier.

Similar Threads

  1. [solved] GridPanel / Grid doesn't resize columns on window resize
    By tarsolya in forum Ext 1.x: Help & Discussion
    Replies: 19
    Last Post: 10 Apr 2012, 3:51 PM
  2. event handling... final attempt with ExtJS before I give up completely ...
    By sithlord2 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 May 2009, 6:42 AM
  3. resize a gridpanel doesn't resize contents
    By mfrodrigues in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 19 Mar 2008, 8:05 AM
  4. GridPanel resize event
    By rogerr in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 6 Feb 2008, 5:17 PM

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi