I am trying to figure out how to bind a gridpanel from Javascript/Client side...




////////////////////////////////////////////////////


var myStore = new Ext.data.ArrayStore({


autoLoad: true,


fields: ['DateStamp', 'CommentsText', 'User'],


idIndex: 0 // id for each record will be the first element


});


///////////////////////////////////////////////////


for (var row = 0; row < commentTable.length; row++) {


var myData = [


[1, '1/31/2009', 'Test 1', 'Fred'], // note that id for the record is the first element


[2, '2/31/2209', 'Test 2', 'Travis']


];


myStore.loadData(myData);


gpComments.store = myStore;