Skip to content

Instantly share code, notes, and snippets.

@slackorama
Created April 14, 2009 18:30
Show Gist options
  • Save slackorama/95334 to your computer and use it in GitHub Desktop.
Save slackorama/95334 to your computer and use it in GitHub Desktop.
connect to grid onCellClick to bubble up
<div rowsPerPage="100" id="grid" jsId="grid" dojoType="dojox.grid.DataGrid" model="dataModel"
class="grid v0 stackGrid marginCenter"
structure="layout">
<script type="dojo/connect" event="onCellClick" args="event">
var targetClass = event.target.className;
if(targetClass == "first"||targetClass == "last"){
moveRow(event.rowIndex,event.target.className);
}
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment