concept event handler in category ext js

This is an excerpt from Manning's book Ext JS in Action, Second Edition.
I (Jay) recall my early days with the Ext framework, when I learned by toying with the examples and reading the API documentation. I spent many hours on some of the most important core UI concepts, such as adding user interaction, reusing widgets, and understanding how one widget can contain or control another. For instance, how would I make clicking an anchor tag display an Ext window? Sure, there’s a generic JavaScript way to attach an event handler, but I wanted to use Ext JS. Likewise, I needed to know how to get widgets to communicate with each other. For example, how would I reload a grid panel when a row of another grid panel was clicked? Also, how would I add child items dynamically to and remove them dynamically from a panel? How could I find a particular field within a form panel based on the type field?
Creating your first grid was a cinch, wasn’t it? Obviously, there’s much more to grid panels than displaying data and sorting it. Features like pagination and setting up event handlers for gestures like right-clicks are used frequently. These advanced uses are exactly where we’re heading next.
To create row-based user interaction, you need to bind event handlers to events that are published by the grid panel. Here you’ll learn how to use the rowdblclick event to display a dialog box when a double-click is detected on a row. Likewise, you’ll listen for a contextmenu (right-click) event to create and show a single-item context menu using the mouse coordinates.