Skip to content

Instantly share code, notes, and snippets.

@slackorama
Created December 9, 2008 22:59
Show Gist options
  • Save slackorama/34134 to your computer and use it in GitHub Desktop.
Save slackorama/34134 to your computer and use it in GitHub Desktop.
How to use the get function ref for dojo grid 1.2
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