title: onClick event of Button inside DataGrid
body: <p>Here's my DataGrid:</p>
  
  <pre><code>// $ is a reference to `this` as it lies in an anonymous function
  $.grid = new DataGrid({
      store : $.dataStore,
      query : {id : "*"},
      structure : [
          { 
              noscroll : true,
              cells : [{ name : "Recipe", field : 'name', width : '200px' }],
          },
          {
              cells : [
                  [
                   { name : 'ID#', field : 'id', width : '50px'},
                   { name : 'Category', field : 'category', width : '100px'},
                   { name : 'Status', field : 'status', width : '100px'},
                   { name: "Actions", width : '200px', type: dojox.grid.cells._Widget, formatter : $._actionButtons}
                  ]
              ] // end cells
          }
      ]
  }, $.targetNode)
  $.grid.startup();
  
  $.grid.on("RowClick", function(e){
      console.log(this.getItem(e.rowIndex))
  })
  </code></pre>
  
  <p>And my <code>formatter</code> object for the Actions cell:</p>
  
  <pre><code>_actionButtons : function(){
      var _self = this;
      var _args = arguments;
      this.group = new Pane()
  
      var full = new Button({ 
          label: 'View Full',
          style : { fontSize : '80%'},
          onClick : function(){
              try {
                  _self.grid.onRowClick.apply(this, arguments)
              }catch(e){}
          }
      });
      full._destroyOnRemove = true;
  
      var edit = new Button({
          label : 'Edit',
          style : {fontSize: '80%'}
      });
      edit._destroyOnRemove = true;
  
      construct.place(full.domNode, this.group.containerNode)
      construct.place(edit.domNode, this.group.containerNode)
  
      return this.group;
  }
  </code></pre>
  
  <p>I'm trying to get access to the event object that would be passed by a normal <code>onRowClick</code> event on the DataGrid.  As it sits now this kinda works, but on the <code>on("RowClick"...)</code> block I get multiple logs.  Without the <code>try...catch</code> block I get an error as the rowIndex doesn't exist in <code>e</code>, then 2 more logs where it does exist.  </p>
  
  <p>This is the 4th or so idea I've had included pub/sub, emit(), etc.  I have a feeling that the multiple logs are caused by the bubbling behavior (Button -> Row -> DataGrid or somesuch), but getting the onRowClick's event object to get passed into the Buttons created in the formatter seems impossible. </p>
  
  <p>I just want to access the rowIndex (and other DataGrid-esque properties) from the Button widget's <code>onClick</code> event to process according to the button pressed.</p>