Hi dhileepen, I tried your problem its interesting...hope this code may help you but i am not able to give customitems as play and open,it may be default flash option....lets check that too....
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; private var cMenu:ContextMenu; private var playItem:ContextMenuItem; private var openItem:ContextMenuItem; private var Index:Number; private function init():void{ cMenu = new ContextMenu(); cMenu.hideBuiltInItems(); playItem = new ContextMenuItem("Open1"); cMenu.customItems.push(playItem); openItem = new ContextMenuItem("Play1"); cMenu.customItems.push(openItem); myGrid.contextMenu = cMenu; cMenu.addEventListener(ContextMenuEvent.MENU_SELECT,contextMenu_Select); } private function contextMenu_Select(e:ContextMenuEvent):void{ if(Index == 1){ playItem.enabled = false; openItem.enabled = true; }else{ openItem.enabled = false; playItem.enabled = true; } } ]]> </mx:Script> <mx:DataGrid id="myGrid" itemRollOver="Index = event.rowIndex"> <mx:ArrayCollection> <mx:Object Artist="rtf" Album="WordDocument" /> <mx:Object Artist="swf" Album="Movie" /> </mx:ArrayCollection> </mx:DataGrid> </mx:Application> -dinesh On Fri, Jan 16, 2009 at 11:44 AM, dhileepen chakravarthy < [email protected]> wrote: > yes > > > >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

