1. #1
    Sencha User borisperezg's Avatar
    Join Date
    May 2010
    Posts
    22
    Vote Rating
    0
    borisperezg is on a distinguished road

      0  

    Question Adding widget to ContentPanel with Listener

    Adding widget to ContentPanel with Listener


    Hi people.

    I have an AreaChart and I have it an association with a listener:
    Code:
    area2.addChartListener(listener);
    Then, the listener implementation is in this way:
    Code:
    private ChartListener listener = new ChartListener() {
       public void chartClick(ChartEvent ce) {
          if(panelDatos!=null){
            Info.display("Chart Clicked", "Panel valido");
            panelDatos.addText("Nuevo");
         }else 
            Info.display("Chart Clicked", "Panel es nulo");
      } 
    };
    The variable panelDatos is type of ContentPanel and declared as class attribute. When listener is executed Info.display shows "Panel valido" string, so, it doesn't null, but, the text is never shown inside mi ContentPanel.

    What do I have to do ? I need to force some refresh or what ?

    Thanks people for listening.

  2. #2
    Sencha User
    Join Date
    Sep 2009
    Location
    Switzerland
    Posts
    29
    Vote Rating
    0
    oxyrox is on a distinguished road

      0  

    Default


    Yes, you could try to re-layout your contentpanel.
    Code:
    panelDatos.addText("Nuevo");
    panelDatos.layout();
    If this doesn't help you would have to post a test case implementing EntryPoint showing the problem so we can help.

  3. #3
    Sencha User borisperezg's Avatar
    Join Date
    May 2010
    Posts
    22
    Vote Rating
    0
    borisperezg is on a distinguished road

      0  

    Default It works

    It works


    Quote Originally Posted by oxyrox View Post
    Yes, you could try to re-layout your contentpanel.
    Code:
    panelDatos.addText("Nuevo");
    panelDatos.layout();
    If this doesn't help you would have to post a test case implementing EntryPoint showing the problem so we can help.
    It works!!!!... It's incredible ... Thanks for your help Oxy, now, I can continue with my app.

    Bye.

Similar Threads

  1. widget not showing in GXT's contentpanel
    By mwmcmullen in forum Ext GWT: Discussion
    Replies: 12
    Last Post: 5 May 2010, 6:38 AM
  2. Adding Widget or Icon to a Grid
    By Kutu in forum Community Discussion
    Replies: 5
    Last Post: 19 Apr 2010, 1:48 PM
  3. ContentPanel Slide Listener????
    By LINEMAN78 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 9 Nov 2008, 2:11 PM
  4. ContentPanel.setURL() adds new event listener
    By ismoore in forum Ext 1.x: Bugs
    Replies: 3
    Last Post: 16 May 2007, 5:51 AM

Thread Participants: 1

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