Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7041167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:00:22+00:00 2026-05-28T02:00:22+00:00

Problem Hello the inconvenient is that when I load my application the handler is

  • 0

Problem

Hello the inconvenient is that when I load my application the handler is automatically executing, this is the code of the grid:

   Ext.define('masterDataGrid', {

        extend : 'Ext.grid.Panel',
        windowItems : null,
        addWin : null,


        initComponent : function() {
            var me = this;
            Ext.applyIf(me, {
                        tbar : [{
                                    text : 'Add',
                                    handler :me.onAdd,
                                    scope : me
                                }, '-', {
                                    text : 'Delete',
                                    handler : me.onDelete,
                                    scope : me
                                }, '-']
                    });


            me.callParent(arguments);
        },


        getAddWindow : function() {
            if (!this.addWin) {
                this.addWin = new windowPop({
                            buttons : [{
                                        text : 'i_OK',
                                        handler : this.winOk()
                                    }, {
                                        text : 'i_Cancel',
                                        handler : this.winCancel()
                                    }]
                        });
                this.addWin.add(this.windowItems);
            }
            return this.addWin;
        },


        onAdd : function() {
        var addWindow = this.getAddWindow();
        addWindow.show();
        },


    });

And I’m calling this mastergrid form another class that extends from it, this is the code:

 Ext.define('confEmailEmail', {
        extend : 'masterDataGrid',
        initComponent : function() {
            var me = this;
            me.columns = [{
                        id : 'code',
                        header : 'code',
                        dataIndex : 'code',
                        width : 220
                    }, {
                        header : 'description',
                        dataIndex : 'description',
                        width : 130
                    }, {
                        header : 'multiply',
                        dataIndex : 'multiply',
                        width : 70,
                        align : 'right'
                    }, {
                        header : 'cyrcletime',
                        dataIndex : 'cycletime',
                        width : 95
                    }];


            me.windowItems = [{
                        xtype : 'combobox',
                        id : 'cb_input',
                        fieldLabel : 'i_Input',
                        margin : '5 0 0 5',
                        style : 'font-weight:bold',
                        labelWidth : 120
                    }, {
                        xtype : 'checkbox',
                        id : 'chk_invert',
                        fieldLabel : 'i_Invert',
                        margin : '5 0 0 5',
                        style : 'font-weight:bold',
                        labelWidth : 120
                    }, {
                        xtype : 'combobox',
                        id : 'cb_activeBy',
                        fieldLabel : 'i_Active by',
                        margin : '5 0 0 5',
                        style : 'font-weight:bold',
                        labelWidth : 120
                    }];


            me.callParent(arguments);


        }
    });

it supposed to open the window to add a new row when I click on the add button but it is showing every time I execute the whole application.

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:00:23+00:00Added an answer on May 28, 2026 at 2:00 am

    I got it, it is because onAdd is a method for Ext.grid.Panel, then when it is trying to load the application it access to my method onAdd because he thinks that I had overwrote the method onAdd of Ext.grid.Panel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem Hello all! I have this code which takes my jpg image loops through
hello i have a problem that's maybe difficult to descripe, i have an application,
Hello I got problem with scroll on my grid. Here is the code (nothing
Hello i`ve got a problem: when i run this code i get this: on
hello today i have a problem how can this happen ? everything that is
Hello I have this problem with PyQt4-dev-tools that include: * a user interface compiler
Hello My problem with this code is on my 2nd else loop; i never
Hello I've runned in to a problem again that I can't solve on my
Here is the code to reproduce the problem: sub hello { return (h =>
Hello I have a problem with this http://jsfiddle.net/E7dGA/1/ When the script starts and you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.