Hi Kanu Please make your query a little more specific, it will make it easier to understand and solve your problem. As you know, this is a high traffic forum and most of the guys who solve issues are doing it by sneaking time from their regular work . Please elaborate a little more on what you want to do, it will be easier for folks to suggest a solution.
Thanks Harish On 5/28/07, kanu kukreja <[EMAIL PROTECTED]> wrote:
Hello everyone, i don't 9ow y but nobody replies to my queries. :( I hope this time u all help me out. i want to click on any particular data of datagrid and need to render its value and open a different state for every column item click. ** *My code:* <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF" creationComplete="start()"> <mx:DataGrid x="10" y="64" width="853" height="661" id="leadList_dg" > </mx:DataGrid> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; private function get(str:String):void{ trace(str) } private function start():void{ var leadListArr:ArrayCollection=new ArrayCollection(); var taskArr:Array = [{label:"Overdue", data:1}, {label:"Today", data:2}, {label:"Tomorrow", data:3} ]; var numArr:Array = [{label:"1", data:1}, {label:"2", data:2}, {label:"3", data:3} ]; var nameArr:Array = [{label:"kanu", data:1}, {label:"manav", data:2}, {label:"varun", data:3} ]; for (var j:Number = 0; j<taskArr.length; j++) { leadListArr.addItem ({Subject:taskArr[j].label,Time:numArr[j].label,Duration:nameArr[j].label}); } leadList_dg.dataProvider=leadListArr; } ]]> </mx:Script> </mx:Application> *Best Regards* *Kanu Kukreja* ------------------------------ Get the Yahoo! toolbar and be alerted to new email <http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/features/mail/index.php>wherever you're surfing.