Here is the code snippet for the ItemRenderer protected function clickHandler(event:MouseEvent):void { var point:Point = new Point(); point = DisplayObject(event.currentTarget).localToGlobal(point);
point.y = DisplayObject(event.currentTarget).height + point.y; var menu:Menu = Menu.createMenu(DisplayObjectContainer(event.currentTarget), getMenuItems(data.type, parentDocument, adminUser, editable )); menu.addEventListener(MenuEvent.ITEM_CLICK, menuItemChangeHandler, false, 0, true); menu.show(point.x, point.y + 2); } On Sun, Mar 20, 2011 at 11:10 PM, Shalu <shalupoplij...@gmail.com> wrote: > Hi Harsh, > > You can use item-renderer and add your contextMenuItem to contextMenu, > on click of contextMenuItem , dispatch a custom itemClickEvent and on > the list level, handle that event and remove the particular item from > the data provider. > > Thanks & Regards, > Shalu > > On Mar 20, 10:17 am, Harsh <harsh...@gmail.com> wrote: > > I want to use context menu for delete in LIST component, > > can somebody please help how to do it > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to flex_india@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.