I'm not sure I understand the setup.  It is rare for a renderer to set
its parent's rowCount.

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of dorsetwest
Sent: Tuesday, August 26, 2008 6:34 PM
To: [email protected]
Subject: [flexcoders] List rowCount in a datagrid, varying by row using
ListItemRenderer

 

Folks ...

I'm implementing a master/detail view in a datagrid column by means of
a custom component that extends List and uses a programmatic
listitemrenderer that renders as many rows in the list as the detail
for that column requires.

It works well ... up to a point. Seems that the first row's list
depth locks in the depth for all succeeding rows.

I remember reading something in Alex's notes on itemRenderers that
suggests they are reused extensively. Therefore I've taken care to
set rowCount carefully each time rendering takes place. However while
the debugger shows the itemRenderer setting its parent's rowCount
correctly, the setting has no effect on the visual display, still
locked at the first row's detail depth.

Anybody have any thoughts as to why this might be happening, and how
the rowCount of a list in a column can be varied on a per column or
per row basis?

Also interested in other approaches; tempted by advancedDataGrid, but
seems very difficult to get working at all (due to some of the
classloading order bugs) and has a pretty scary list of internal
issues. Ideas?

R.

 

Reply via email to