Ext.namespace('com.comrades');


com.comrades.TopMemberGrid = function(config){

	   Ext.apply(this, {

	    });
	    // And Call the superclass to preserve baseclass functionality
	   com.comrades.TopMemberGrid.superclass.constructor.apply(this, arguments);
};

Ext.extend(com.comrades.TopMemberGrid, Ext.grid.GridPanel, {
  title:'Most Active (Top 10)'
  ,refreshOnLoad:true
  ,loadMask:true 
  ,disableSelection : true
  ,store : new com.comrades.TopMemberDataStore
  ,columns: [
      {header: "Name", width:110, hideable:false, menuDisabled:true, sortable: false, dataIndex: 'name'},
      {header: "Accepted", hideable:false, menuDisabled:true, sortable: false, dataIndex: 'accepted'},
	  {header: "EAP Rating", hideable:false, menuDisabled:true, sortable: false, dataIndex: 'rating'}
	  
  ]
  ,viewConfig: {
	 forceFit:true
	 ,enableRowBody:true
	 ,getRowClass: function(record, rowIndex, p, store) {
		return 'my-grid-row-class';
	  }

  }			  
	
  ,onRender: function() {
	//render superclass contents	
    com.comrades.TopMemberGrid.superclass.onRender.apply(this, arguments);
    //render custom content
    if (this.refreshOnLoad){
    	this.store.load();
     }
  }//eo onRender

});


