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 8302159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:12:50+00:00 2026-06-08T17:12:50+00:00

I have checked the API and is supposed to exist a method from GridPanel

  • 0

I have checked the API and is supposed to exist a method from GridPanel that is addLister, so ok I try to use it:

function showCreatePatientCoincidencesWindow(matches, patientData, actuallyCreate) {
    var grid = new GridPanel('idGrid', '', null, 250);
        grid.addColumn(new GridColumn('idgridColumn0LC', 'Nombre', "cName"));
        grid.addColumn(new GridColumn('idgridColumn1LC',' Apellido1', "cSurname1"));
        grid.addColumn(new GridColumn('idgridColumn2LC', 'Apellido2', "cSurname2"));
        grid.addColumn(new GridColumn('idgridColumn3LC', 'Documento', "cDoc"));
        grid.addColumn(new GridColumn('idgridColumn4LC', 'Fecha Nacimiento', "cDate"));
        grid.addColumn(new GridColumn('idgridColumn5LC', 'Sexo', "cGender"));
        grid.addListener('show',showHandler,this);     
    var gridStore = new Ext.data.GroupingStore({
        root:'matches',
        reader: new Ext.data.JsonReader({
        .
        .
        .
        .

The code before is the one I’m executing, it obviously continue but the problem is that I get this error from chrome debugger:

Uncaught TypeError: Object #GridPanel has no method ‘addListener’

How is it possible? what I’m doing wrong? My library is the 3.4 and I have check the APIs of Ext JS 2.3, 3.4 and 4.1, all of them have this method.

  • 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-06-08T17:12:52+00:00Added an answer on June 8, 2026 at 5:12 pm

    Your gridpanel constructor is not formatted properly per the 3.4 docs.

    There should only be a single argument which is a config object (i.e. with config keys and wrapped in curlies {}).

    Also full names are customary Ext.grid.GridPanel vs GridPanel. I think you can get around that if you are requiring the Ext.grid.GridPanel.js in your JS but I can’t tell if you are doing that.

    I probably do not have your arguments mapped to the right configs correctly, but this should give you an idea:

    var grid = new Ext.grid.GridPanel({id: 'idGrid', title: '', data: null, width: 250});
    

    You may also want to define the columns and store in the constructor while your at it:

    var grid = new Ext.grid.GridPanel({
        id: 'idGrid', 
        title: '', 
        data: null, 
        width: 250,
        columns: [{
            id: 'idgridColumn0LC',
            header: 'Nombre',
            field: 'cName'
        }, {
            id: 'idgridColumn1LC',
            header: 'Apellido1',
            field: 'cSurname1'
        }, {
            id: 'idgridColumn2LC',
            header: 'Apellido2',
            field: 'cSurname2'
        }, {
            id: 'idgridColumn3LC',
            header: 'Documento',
            field: 'cDoc'
        }, {
            id: 'idgridColumn4LC',
            header: 'Fecha Nacimiento',
            field: 'cDate'
        }, {
            id: 'idgridColumn5LC',
            header: 'Sexo',
            field: 'cGender'
        }],
        store: new Ext.data.GroupingStore({
            root:'matches',
            reader: new Ext.data.JsonReader({
                // reader configs
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have checked some documentions about the Facebook api that communicates with flash and
I have a JS photo gallery that loads individual images from an API into
I have checked Oracle Java API, which gives some info that FutureTask.isDone() but I
Possible Duplicate: Google plus api for posting on wall like facebook I have checked
I have checked with Aweber customers service and they told me their internal function
I have checked few other posts and found some UIAnimation transitions that kind-of give
I have checked out now a local working copy of a codebase that lives
I have checked out files from my svn repository to a local project folder.
I've doubled checked my API key is right and that is right I doubled
I'd like to tag a project I have checked out from SVN as part

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.