I found this extjs script that create a empty gridpanel:
var gridz = new Ext.grid.GridPanel({
// store: dstore,
columns: [
{id:'id', header: "Id", width: 60, sortable: true, dataIndex: 'id'},
{id: 'data', header: "Data", width: 200, sortable: true, dataIndex: 'data'}
],
stripeRows: true,
autoExpandColumn: 'data',
height:350,
width: 500,
title:'Demo Data'
});
now is question: I have table called answers, how i can put my data from database intro this grid?