Flex datagrid with dropdownlist in a particular row -


i'm having difficulty figuring out how add dropdownlist control single row of data grid. example, if have 2 rows of data in grid, want top normal text data provider, , second row dropdownlist (bound array collection). i've searched high , low solution no avail. appreciated.

thanks,

conceptually need itemrenderer function, not implemented in mx datagrid. ( may in new spark one, don't know).

in lieu of that, create itemrenderer conditionally display dropdownlist. this:

<s:mxdatagridrenderer datachange="ondatachange()">  <fx:script>    public function ondatachange():void{     if((this.listdata datagridlistdata).rowindex == 0){      label.visible == false;      ddl.visible == true;     } else {      label.visible == true;      ddl.visible == false;     }       }  </fx:script>   <s:label id="label" />  <s:dropdownlist id="ddl" />  </s:mxdatagridrenderer> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -