Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    22
    Vote Rating
    0
    shekhar.kotekar is on a distinguished road

      0  

    Default Unanswered: How to display panel on click event of menu?

    Unanswered: How to display panel on click event of menu?


    Hi,

    I would like to know how to display certain panel on click event of menu? I have added menu items in viewport and listening for 'click' event of menu items in controller. Upto this point its working fine but when I use Ext.widget() method to get panel and call show() method of that panel, nothing is happening.

    My code to handle menu item click event is as follows :

    Code:
    viewPortMenu_ClickHandler : function(menu, item, event, options) {
            var panelToShow = null;
        if (item.text == '4D view') {
             panelToShow = Ext.widget('employeeDistribution');
         }
         if (panelToShow != null) {
             panelToShow.show();
         }
        }
    Please let me know why this is not working / what is the preferred way to display panels at runtime?

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    22
    Vote Rating
    0
    shekhar.kotekar is on a distinguished road

      0  

    Default


    I found the answer. I just had to add the newly created panel inside viewport using add() method of viewport.

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..."