Skip to content

Instantly share code, notes, and snippets.

@nicknisi
Created May 22, 2012 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicknisi/2771527 to your computer and use it in GitHub Desktop.
Save nicknisi/2771527 to your computer and use it in GitHub Desktop.
dojo dgrid pass row data in to an editor cell
var col = {
row : null,
editor : StatusSelector,
get : function (obj) { col.row = obj; return obj.status; },
editorArgs : function (column) { return column.row.otherValue; },
...
};
new Grid({
columns : [
editor(col),
...
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment