Code:
Ext.define("TestModel", {
    extend: "Ext.data.Model",
    idProperty: "id",
    fields: [
        { name: "id", type: "int" },
        { name: "name", type: "string"  }
    ]
});

Ext.onReady(function() {
    var
        maxRecordsCount = 500,
        pageSize = 25,
        createData = function(max) {
            var
                data = [];

            for(var i=0; i<max; ++i)
                data.push( { id: i, name: "Record# "+i } );

            return data;
        },
        store = Ext.create("Ext.data.Store", {
            model: "TestModel",
            pageSize: pageSize,
            data: createData(maxRecordsCount),
            proxy: {
                type: "memory"
            }
        });

    grid = Ext.create("Ext.grid.Panel", {
        //height: 400,
        layout: "fit",
        store: store,
        columns: [
            { dataIndex: "id", header: "id" },
            { dataIndex: "name", header: "name" }
        ],
        plugins: "bufferedrenderer",
        renderTo: Ext.getBody()
        //renderTo: Ext.get("divVictim")
    });
});
Grid doesn't show data. May I use layout?