Doug,
Thanks fo this. As implied, I'm surprised how hard it is, with only
Flash as my context for this kind of programmability, to treat
components as links within Flex.
j.
--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]>
wrote:
>
> The mouseDown/getURL portion is just
The function that I posted here is a part of some Helper class. In order to operate on the datagrid defined in MXML you can save the reference of the datagrid liek this (there are umpteen ways of doing this )
function init()
{
ModelLocator.myDG = this.myDG;
Helper.buildPhasesDataGridC
great! couple of questions:
ModelLocator, is that a utlity that you have created to locate a component by
it's ID?
What/when do you hook into this method to set the columns on the datagrid? i
assume it
needs to be done before the data is actually loaded into it?
thanks!
--- In flexcoders@ya
The mouseDown/getURL portion is just the change event of the
datagrid.
The onRowSelected(row) function could then just call getURL with
some property of the row data, e.g. row.url. Just be sure to verify
the row parameter first, since you will also get the change event if
the user de-select
I have some sample code in 1.5:
public static function buildPhasesDataGridColumns():Void { Dumper.info("%%% buildPhasesDataGridColumns invoked"); var phasesVOArray : Array = ModelLocator.currentProject.phaseVOArray; ModelLocator.phasesDG.removeAllColumns(); for ( var
5 matches
Mail list logo