This content has been marked as final. Show 5 replies
Yes, it depends on your choice of server technologies.
I use dot.net, aspx, and HTTPService mostly.
i use java servlets.. the most challenging thing to me when starting down this route was figuring out how to dynamically configure the grid based on the data. almost every example i came across required you to know the columns before receiving the data.
to create your own columns, you do something like:
var columNames:Array = [ "id", "name", "address" ];
var gridCols:Array = ;
var totalWidth:int = myGrid.width;
for each( var n:String in columnNames )
var column = new DataGridColumn();
column.dataField = n;
column.width = totalWidth / columnNames.length;
// set other properties like width, headerText, itemRenderer etc
gridCols.push( column );
// set the grid columns which forces the redraw
myGrid.columns = gridCols;
Thanks for the input, guys :) I got it working.