Take the 2-minute tour ×

I have a datagrid that displays data and a user can select the "view" action column on this datagrid. When this happens, the user should view details of the selected row in a new gridpanel. I am populating a new store for this grid in the action column as follows:

Action Column handler:

 //code in action column handler
var store;

console.log ('About to load the store');

var rec = view.getStore().getAt(rowIndex);
var rowid = rec.get('ID');

store = Ext.getStore('MetadataJsonPStore').load({
        solution: 'DemoDocuments',
        project: 'MyDemoDocuments',
        process : 'RetreiveFileMetadata',
        user :'admin',
        password :'changethis',
        waittofinish :'true' ,
        FileID : rowid

    callback: function(records, options, success) {
        if(success) {
            var fileMetadataPanel = Ext.getCmp('matadataPanel');
            //if (records.length = 0)
        else {
            Ext.Msg.alert('Request Failed','Service currently not available');

My store is correctly populated but my grid doesn't display. When I view my console i do not have errors so i assume i am missing a step.

My datagrid is linked to a store ( the store being loaded above) but the data does not display. Any ideas of how to complete this function?

share|improve this question
Are you sure your grid are correctly linked to your loading store? Try call getStore() of grid and check. –  Damask Jun 19 '13 at 10:27

1 Answer 1

You need to refresh that Grid view.

Sencha: grid view refresh

gridView = this.getCmp('gridID');


Other solution:

Load data on the store2 before render the new grid view

share|improve this answer
If you are loading store you don't need to refresh grid, it happens automatically. –  Damask Jun 19 '13 at 10:22
I know that, the grid refresh automatically after load... but maybe its a solution, for that it's my second solution. And I read this to discard your answer type: "My datagrid is linked to a store", but it could be the solutions your answer... –  mfruizs2 Jun 19 '13 at 11:38

Your Answer


