with this application how can i implement itemrenderer through action script
> <?xml version="1.0"?> > <!-- DataGrid control example. --> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > creationComplete="cell.send();columnname.send();"> > <mx:Script> > <![CDATA[ > import mx.controls.Alert; > import mx.controls.DateField; > import mx.rpc.events.ResultEvent; > import mx.controls.dataGridClasses.DataGridColumn; > [Bindable] private var xmldata:XML; > private function > handleHTTPResult(event:ResultEvent):void { > cursorManager.removeBusyCursor(); > xmldata = (event.result as XML); > } > [Bindable] public var dgc:DataGridColumn; > private function > handleHTTPResultForColumnName(event:ResultEvent):void { > var colmname:String; > cursorManager.removeBusyCursor(); > [EMAIL PROTECTED]; > var cname:Array=colmname.split(":"); > var orig_colmname:String; > cursorManager.removeBusyCursor(); > [EMAIL PROTECTED]; > var > orig_cname:Array=orig_colmname.split(":"); > var cols:Array = dg.columns; > for (var i:Number=0; i<cname.length; i++) > { > dgc= new DataGridColumn(cname[i]); > dgc.dataField=orig_cname[i]; > dgc.width=1000-2/(cname.length); > dgc.draggable; > cols.push(dgc); > } > cols.pop(); > dg.columns = cols; > } > ]]> > </mx:Script> > <mx:Panel title="DataGrid Control Example" height="100%" > width="100%" > paddingTop="10" paddingLeft="10" paddingRight="10"> > <mx:DataGrid id="dg" width="100%" height="100%" > editable="true" rowCount="50" dataProvider="{xmldata.row}"> > <mx:columns> > <mx:DataGridColumn width="1" /> > <mx:DataGridColumn width="1" > headerRenderer="header_2ndcolm_icon" /> > </mx:columns> > </mx:DataGrid> > </mx:Panel> > <mx:HTTPService id="cell" url="http://localhost/deba/cellvalue.php" > showBusyCursor="true" resultFormat="e4x" > result="handleHTTPResult(event)"> > </mx:HTTPService> > <mx:HTTPService id="columnname" url="http://localhost/deba/ > columnname.php <http://localhost/deba/columnname.php>" > showBusyCursor="true" resultFormat="e4x" > result="handleHTTPResultForColumnName(event)"> > </mx:HTTPService> > </mx:Application> actually i am generating a datagrid which having different element in different column.like one column having combo,one having text field, one having datefield.so with previous code can i do it. if yes then how??? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

