Created
December 9, 2008 22:59
-
-
Save slackorama/34134 to your computer and use it in GitHub Desktop.
How to use the get function ref for dojo grid 1.2
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 layout = [{ | |
cells: [[ | |
{ name: ' ', | |
get: getSubgridToggler, | |
style: 'text-align: center;', | |
width: '18px', | |
headerClasses:'expandHeader' } | |
]] | |
}]; | |
function getSubgridToggler(inRowIndex,item) { | |
if (!item) { | |
return ""; | |
} | |
return grid.store.getValue(item,"first_name") + " " + | |
grid.store.getValue(item,"last_name"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment