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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:31:08+00:00 2026-05-29T22:31:08+00:00

I have a store: var store = new Ext.data.store({ autoLoad: true, autoSync: true, model:

  • 0

I have a store:

var store = new Ext.data.store({
                autoLoad: true,
                autoSync: true,
                model: 'myModel',
                proxy: {
                    type: 'rest',
                    url: '/url/to/my/json/encoded/results',
                    reader: {
                        type: 'json',
                        root: 'results'
                    },
                    writer: {
                        type:'json'
                    }
                }
            });

Which is the store for some grid in which I display those results.
My grid is configured as follows:

var myGrid = new Ext.grid.Panel({
                id:'myGridID',
                layout:'anchor',
                border:false,
                title:'My Grid',
                width:412,
                store:store,
                heigth:300,
                frame:false,
                .... etc

At some point I add an entry to my database, which works just fine (if I reload the page I see the newly added record in my grid).
What I want to do is reload the grid so when I save that entry into my database the store and the grid refresh themselves and display the newly added record without me having to reload the whole page again.

I tried:

Ext.getCmp('myGridID').getStore().reload();

and…

Ext.getCmp('myGridID').getStore().load();

and…

Ext.getCmp('myGridID').getView().refresh();

and I also tried setting the store as Ext.data.JsonStore but it does nothing.

But nothing works, I’ve been searching all over the internet for this unsuccessfully.

Any help is appreciated.

  • 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-29T22:31:09+00:00Added an answer on May 29, 2026 at 10:31 pm

    This should definitely work:

    Ext.getCmp('myGridID').getStore().load();
    

    Are you getting any javascript errors when you use the above syntax? If so, seeing the specific error message might give some clues.

    Also, ALWAYS ALWAYS use Chrome developer tools (or Firebug or IE Developer Toolbar if you love Firefox/IE). In this case, you want to see if an AJAX request is going out to /url/to/my/json/encoded/results. That will at least tell you if the call to refresh the store is making it to your server.

    My guess is that it’s not, and you most likely have an error message being generated. Probably something along the lines of “Cannot call method ‘getStore’ of undefined”

    This would at least let you know that you’re not successfully obtaining a reference to your grid. From there, check to make sure that you didn’t duplicate “myGridID” for another element or something silly like that.

    You can output some info to the Chrome developer tools console to help debug, starting with:

    console.log(Ext.getCmp('myGridID'));
    

    See if it’s undefined, or returns a references to the grid. If it’s undefined then you’re probably either duplicating the id, or maybe attempting to reload the grid before the component has actually been created (seeing your code in a bigger context of your application would help determine that).

    If it successfully returns a reference to the grid component, then keep going down the line:

    console.log(Ext.getCmp('myGridID').getStore());
    

    Anyway, that’s probably way too much explanation for something you’ve probably already solved by now. Maybe it will be helpful to someone else though.

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

Sidebar

Related Questions

I have this code: var comboStore = new Ext.data.Store({ proxy : new Ext.data.HttpProxy({ url
I am new in Sencha i have created var genres = new Ext.data.Store({ autoLoad:
I have a store like this: var store = new Ext.data.Store({ id: 'store', url:
I have a JsonStore configured like so: var store = new Ext.data.JsonStore({ restful: true,
I have a store as follows. var eventsStore = new Ext.data.Store({ model: 'Event', sorters:
I have a JsonStore: var store = new Ext.data.JsonStore({ root: 'Data.items', remoteSort: false, fields:
I have a store which is defined something like this: var AdditionalGridData = new
For example I have grid. //grid for answers_for_online var answersGridForOnline5 = new Ext.grid.GridPanel({ id
I have a Store that contains a list of Products : var store =
I'm new in Ext and I have a problem: I'm trying to fill extjs-grid

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.