rem: var grid = new Ext.grid.Grid("geneproduct-grid", {ds:ds, cm:cm, loadMask: true }); 
add: var grid = new Ext.grid.GridPanel({renderTo:"geneproduct-grid", height: Ext.get("geneproduct-grid").getHeight(), ds:ds, cm:cm, loadMask: true }); 
context: Ext.onReady(function() {	var geneid = dwr.util.getValue("gene");	var g = {id:geneid};	var converttype = function(d) {		return d.value;	};	var recordType = Ext.data.Record.create([		{name:"id", type:"int"}, 		{name:"name", type:"string"}, 		{name:"description", type:"string"}, 		{name:"type" , convert : converttype}]);			var	ds = new Ext.data.Store(		{		proxy:new Ext.data.DWRProxy(GeneController.getProducts), 		reader:new Ext.data.ListRangeReader({id:"id"}, recordType), 		remoteSort:false		});	ds.setDefaultSort('type', 'name');		var cm = new Ext.grid.ColumnModel([			{header: "Name",  width: 80, dataIndex:"name"}, 			{header: "Type", width: 80, dataIndex:"type" }, 			{header: "Description", width: 270, dataIndex:"description"}]);	cm.defaultSortable = true;	var grid = new Ext.grid.Grid("geneproduct-grid", {ds:ds, cm:cm, loadMask: true });	grid.render();	ds.load({params:[g]});	  });
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/d109eea1e59fbb030ac98e95f181f72da9611a48/gene.detail.js/clean/gemma-web/src/main/webapp/scripts/ajax/gene.detail.js