1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    msmohandg is on a distinguished road

      0  

    Default Unanswered: calling view page on window from controller after button click

    Unanswered: calling view page on window from controller after button click


    Hi All,

    I am new to ExtJs, I need to show a popup window after a button click, Please look at the things I have done,

    Controller: User.js

    Ext.define('Complaints.controller.BusinessUnits',{
    extend: 'Ext.app.Controller',

    init: function(){
    this.control({
    'toolbar button': {
    'click': this.openUserWindow
    }
    });
    },

    openUserWindow: function() {
    // What should I do in this part? How can I show the userlist view page in a window?
    }


    });

    View: UserList.js

    Ext.define('Complaints.view.UserList', {
    extend: 'Ext.window.Window',
    alias: 'widget.userlist',
    initComponent: function() {
    layout: 'anchor',
    resizable: true,
    width: 800,
    height: 600,
    items: [ {
    xtype: 'checkboxgroup',
    fieldLabel: 'Review Complaints By',
    cls: 'x-check-group-alt',
    items: [
    {boxLabel: 'Business Unit', name: 'businessunit-button', checked: true},
    {boxLabel: 'Manufacturing', name: 'manufacturing-button'}
    ]
    }];

    });



    thanks.

  2. #2
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Answers
    31
    Vote Rating
    85
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      0  

    Default


    You should be able to do something like:

    Code:
    openUserWindow: function(){
       var thewindow = Ext.widget('userlist');
       // show the window
       thewindow.show();
    }
    Here's an example: http://jsfiddle.net/existdissolve/qtQWT/

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