Event bubbling and tunneling Routing strategies.

By Nipun Tomar Aug 22, 2011
Understand the process of bubbling and tunneling.

To understand the process of bubbling and tunneling let's take an example of a simple application which has been broke down in to its visual tree.
11.png


Bubbling Strategy:
In this strategy, we start with the control that originated the event and traverse up the tree as shown in the tree below:

22.png



Tunneling Strategy:
In this Strategy, when an event is fired, you go all the way to the root and traverse down until you hit the control that originated the event as shown in the tree below:

33.png



Nipun Tomar

Nipun Tomar is competent and experienced project leader & architect with 10 years of experience in managing multi-disciplinary teams of varying sizes and complex programs of work. Has the ability to build strong relation... Read more

COMMENT USING