rem: grid = new Ext.grid.Grid("probe-grid", {ds:ds, cm:cm, loadMask: true }); 
add: var gridConfig = { renderTo: "probe-grid", store:ds, cm:cm, loadMask: true, height: Ext.get("probe-grid").getHeight() };  if ( isArrayDesign ) { paging = new Ext.PagingToolbar({ store: ds, pageSize: size }); gridConfig.bbar = paging; } grid = new Ext.grid.GridPanel( gridConfig ); 
context: Ext.onReady(function() {	var id = dwr.util.getValue("cslist");	var isArrayDesign = id === "";	if (isArrayDesign) {		id = dwr.util.getValue("arrayDesignId");	}	init(isArrayDesign, id);		initDetails();		if (Ext.get("probe-grid") === null ) { return; }	 	var cm;		if (isArrayDesign) {		// omit array design column		cm = new Ext.grid.ColumnModel([				{header: "Probe Name",  width: 130, dataIndex:"compositeSequenceName", renderer: probelink}, 				{header: "Sequence", width: 130, dataIndex:"bioSequenceName", renderer: sequencelink },				{header: "#Hits", width: 50, dataIndex: "numBlatHits"},  				{header: "Genes", width: 200, dataIndex:"genes" }		]);		cm.defaultSortable = true;		cm.setColumnTooltip(0, "Name of probe (click for details)");		cm.setColumnTooltip(1, "Name of sequence");		cm.setColumnTooltip(2, "Number of high-quality BLAT alignments");	} else {		cm = new Ext.grid.ColumnModel([				{header: "ArrayDesign", width: 100, dataIndex:"arrayDesignName", renderer: arraylink },				{header: "Probe Name",  width: 130, dataIndex:"compositeSequenceName", renderer: probelink}, 				{header: "Sequence", width: 130, dataIndex:"bioSequenceName", renderer: sequencelink },				{header: "#Hits", width: 50, dataIndex: "numBlatHits"},  				{header: "Genes", width: 200, dataIndex:"genes" }				]);			cm.defaultSortable = true;		cm.setColumnTooltip(0, "Name of array design (click for details - leaves this page)");		cm.setColumnTooltip(1, "Name of probe (click for details)");		cm.setColumnTooltip(2, "Name of sequence");		cm.setColumnTooltip(3, "Number of high-quality BLAT alignments");		cm.setColumnTooltip(4, "Symbols of genes this probe potentially targets; if there are more than 3, the total count is provided in parentheses");	}	grid = new Ext.grid.Grid("probe-grid", {ds:ds, cm:cm, loadMask: true });		    // make the grid resizable, do before render for better performance    var rz = new Ext.Resizable("probe-grid", {        wrap:true,        minHeight:100,        pinned:true,        handles: 's'    });    rz.on('resize', grid.autoSize, grid);		grid.render();		// add a paging toolbar to the grid's footer	if (isArrayDesign) {		var gridFoot = grid.getView().getFooterPanel(true);	     paging  = new Ext.PagingToolbar(gridFoot, ds, {	        pageSize: size	    });	}		reset();});
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/d109eea1e59fbb030ac98e95f181f72da9611a48/probe.grid.js/buggy/gemma-web/src/main/webapp/scripts/ajax/probe.grid.js