example 1 | example 2 | Advanced Calendar and Color Picker

This is an example of the DataGrid component available on the Macromedia MX Developer Resource Kit.

This examples demonstrates the following features:

 

here is the code for the example above:

grid.setEditable(true);

var dP = new Array();
var i = 0;
dp[i++] = {session:"Flash, Lies and Videotape: Broadcast Flash Techniques", speaker:"Pete Barr-Watson", company:"Pixelfury"};
//rest of hard coded data for grid

grid.setDataProvider(dP);

//add a custom sort function
var numSort = function(val1, val2)
{
	return (val1.index > val2.index);
}

var col = grid.getColumnAt(0);
col.setSortFunction(numSort);

onStyleSubmit = function()
{
	grid.setStyleProperty("selection", 0x00FF00);
	grid.setStyleProperty("textSize", 16);
	grid.setStyleProperty("header", 0x7EAAE0);
	grid.alternateRowColors(0xffffff, 0xefefef);
	grid.setSelectable(false);
	grid.setRowHeight(18);	
}

 

Back to mesh on mx