nkuhta
nkuhta

Reputation: 11128

ExtJS:: Grid's event after data show?

I need to scrollByDeltaY after data is loaded. What event I need to take? All events, I found, works before data is shown, and scroll doesn't work.

Upvotes: 0

Views: 6722

Answers (2)

Christoph
Christoph

Reputation: 1023

I use the refresh event of the gridview, works much better for me then the store load event:

Ext.create('Ext.grid.Panel', {
    viewConfig: {
        listeners: {
            refresh: function(view) {}
        }
    }
});

Upvotes: 2

byte_slave
byte_slave

Reputation: 1378

Subscribe the grid's store "load" event and the do your scrollByDeltaY code.

myNiceGrid.getStore().on("load", myCcrollByDeltaYFunction);

Upvotes: 1

Related Questions