Celebio/SlickGrid

DataView help/example?

axolotl7 opened this issue · 1 comments

Pardon the newbie question, but is there an example of what I'd need to do to use this plugin with a DataView instead of a static data array? I've got it to the point where it's apparently copying the cells, but it's just copying a selection-sized grid of blank values. I've searched and tried figuring it out, and I think I know roughly what I'm missing -- I'm thinking it's that dataItemColumnValueExtractor option -- but adding the code to get it working is harder than I expected. This plugin will be a lifesaver if I can get over this hump... many thanks in advance!

never mind -- figured it out. feel free to delete my question, or leave it if it might be helpful to others.

grid.registerPlugin(new Slick.CellExternalCopyManager({
dataItemColumnValueExtractor: function(item, columnDef) { return item[columnDef.field]; }
}));