Created
October 31, 2012 16:59
-
-
Save optikalefx/3988295 to your computer and use it in GitHub Desktop.
Row Numbering, Row Checkboxes
This file contains 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
var $grid = $(".demo6").grid({ | |
rowNumbers: true, | |
checkboxes:true | |
}); | |
$grid.on("rowCheck",function(e, $checkbox, rowData) { | |
// using the checkbox, seeing if were checked or unchecked | |
var checked = $checkbox[0].checked ? "checked" : "unchecked"; | |
// calling the notify method on the grid plugin | |
$(this).grid("notify","you "+checked+" "+rowData.Username,1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment