This piece of sneaky code from basegridrow is whacking a method onto various subviews:

<!--- @keywords private Register the dependency of each row cell with
              its column owner.-->
        <handler name="onaddsubview" args="sv">
            if ( !sv [ "ownerColumn"] ) return;
            sv._updateIt = this._updateIt;
var d = new LzDelegate( sv , "_updateIt", sv.ownerColumn,"onx");
            d.register( sv.ownerColumn,"oncolwidth" );
            sv._updateIt();
        </handler>
        <attribute name="_updateIt"
                   value="function(){this.setX( this.ownerColumn.x );
this.setWidth( this.ownerColumn.colwidth)}"/>

I guess this will work, but it goes against the grain of what we are trying to do.

Reply via email to