behaviorrequestGrid = function(){

    var columns = [
        new Ext.grid.RowNumberer(),
        {header: "Description",sortable: true, dataIndex: 'description', id: 'brDesc'} 
    ];

    behaviorrequestGrid.superclass.constructor.call(this, {
        store: new Ext.data.Store({
            url : 'main_menu/behaviorrequest_data.json.php',
            baseParams: {command: 'getConsequences'},
            reader: new Ext.data.JsonReader({root: 'getConsequences'}, [            
              {name: 'description'}
            ]),
              autoLoad : false
        }),
        title: 'Consequences',
        id: 'behaviorrequestGrid',
        autoExpandColumn: 'brDesc',
        columns: columns,
        border: true,
        layout: 'fit',
        anchor: '100% -150',
        autoScroll: true,
        style: {
         marginTop: 10
        }
    });
}

Ext.extend(behaviorrequestGrid, Ext.grid.GridPanel);
