Created
May 29, 2012 15:00
-
-
Save jpoehls/2828914 to your computer and use it in GitHub Desktop.
Handling a row click in SlickGrid
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
var grid = new Slick.Grid(...); | |
grid.onClick.subscribe(function (e, args) { | |
// args: | |
// - cell | |
// - grid | |
// - row | |
var dataItem = args.grid.getDataItem(args.row); | |
if (dataItem) { | |
//window.location.href = '...'; | |
} | |
e.stopPropagation(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mleibman - I'm running v2.0 and args doesn't have an
item
property for me. Justcell
,grid
, androw
. Is this something new?