Function
only newed by _Plugin
function onExported(exported_text){ //custom code here... } dijit.byId("my_grid_id").exportTo("csv", //registered export format, mandatory { //the whole object is optional. fetchArgs: {start:0,count:1000}, //keywordArgs for fetch, optional writerArgs: {separator:';'}, //export writer specific arguments, optional }, function(str){ //call back function, mandatory }); var result = dijit.byId("my_grid_id").exportSelectedTo("table", //registered export format, mandatory {separator:'|'} //export writer specific arguments, optional );
The grid to plug in to.
String
Plugin name.
Function
Function
Function
A registered export format name
includes: { fetchArgs: object? Any arguments for store.fetch writerArgs: object? Arguments for the given format writer }
Call back function when export result is ready
Export required rows(fetchArgs) to a kind of format(type) using the corresponding writer with given arguments(writerArgs), then pass the exported text to a given function(onExported).
Function
A registered export format name
Arguments for the given format writer
Only export selected rows.
string The exported string
String
Function
Use the given export writer(writer) to go through a single row which is given in the context object(arg_obj).
undefined
Function
Use the given export writer(writer) to go through the grid structure and the given rows(items), then return the writer output.
Function
Row selectors and row indexes should be recognized and handled separately.
Boolean
Function
Use the given export format type(fileType) and writer arguments(writerArgs) to create a ExportWriter and return it.
ExportWriter
EnhancedGrid
The grid to plug in to.
Function
Register a writer(writerClsName) to a export format type(fileType). This function separates the Exporter from all kinds of writers.
Object
Object
Object
Object