In my application i have a datagrid with itemrenderer as charts and I need have to perform two operations - one on single click and one on double click - on the chart. but most of the times double click event is not fired and if fired then single click is also fired. Can I stop single click event if double click event is fired ?
Unfortunately there's no solution I know which can get this done directly. The way to go is the age old way of Flash, where you need to use a timer to delay the handling of the click event.
If within the time, a doubleClick is not dispatched, handle click or if it doesnt then handle click Also i want to point out that if you are using a DG(dataGrid), its better to go for itemClick & itemDoubleClick event than the normal click & doubleClick events...
Raghunath Rao Engineer, Flex Framework Adobe Systems, Bangalore --~--~---------~--~----~----------------------~-------~--~ The opinions and views expressed here are purely my own and are in no way endorsed by my company (Adobe Systems) -~----------~----~----~----~------~----~-----------------~
___________________________________________________________________________ _________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/
Sorry... Some typo in there :)"If within the time, a doubleClick is not dispatched, handle click or if it doesnt then handle click. Also i want to point out that if you are using a DG(dataGrid), its better to go for itemClick & itemDoubleClick event than the normal click & doubleClick events..."What i meant was..."If within the time, a doubleClick is not dispatched, handle click or if it does then handle only double click. Also i want to point out that if you are using a DG(dataGrid), its better to go for itemClick & itemDoubleClick event than the normal click & doubleClick events..."ThanksRaghu
-- Raghunath RaoEngineer, Flex FrameworkAdobe Systems, Bangalore--~--~---------~--~----~----------------------~-------~--~The opinions and views expressed here are purely my own and are in no way endorsed by my company (Adobe Systems)-~----------~----~----~----~------~----~-----------------~
--------------------------------- Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
> Unfortunately there's no solution I know which can get > this done directly. > The way to go is the age old way of Flash, where you > need to use a timer > to delay the handling of the click event.
> If within the time, a doubleClick is not dispatched, > handle click or if > it doesnt then handle click > Also i want to point out that if you are using a > DG(dataGrid), its > better to go for itemClick & itemDoubleClick event > than the normal click > & doubleClick events...
> Raghunath Rao > Engineer, Flex Framework > Adobe Systems, Bangalore > --~--~---------~--~----~----------------------~-------~--~ > The opinions and views expressed here are purely my > own > and are in no way endorsed by my company (Adobe > Systems) > -~----------~----~----~----~------~----~-----------------~
> ___________________________________________________________________________ _________ > Looking for a deal? Find great prices on flights and hotels with Yahoo! > FareChase. > http://farechase.yahoo.com/
> Unfortunately there's no solution I know which can get > this done directly. > The way to go is the age old way of Flash, where you > need to use a timer > to delay the handling of the click event.
> If within the time, a doubleClick is not dispatched, > handle click or if > it doesnt then handle click > Also i want to point out that if you are using a > DG(dataGrid), its > better to go for itemClick & itemDoubleClick event > than the normal click > & doubleClick events...
> Raghunath Rao > Engineer, Flex Framework > Adobe Systems, Bangalore > --~--~---------~--~----~----------------------~-------~--~ > The opinions and views expressed here are purely my > own > and are in no way endorsed by my company (Adobe > Systems) > -~----------~----~----~----~------~----~-----------------~
> ___________________________________________________________________________ _________ > Looking for a deal? Find great prices on flights and hotels with Yahoo! > FareChase. > http://farechase.yahoo.com/