Created
April 14, 2009 18:30
-
-
Save slackorama/95334 to your computer and use it in GitHub Desktop.
connect to grid onCellClick to bubble up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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