/// <summary> /// Exports the Grid to CSV. /// Cuidado con esto porque rebindea la grilla sacandole el paging. /// </summary> protected override void ExportToCsv() { var builder = new GraphToCsvBuilder(Usuario.CsvSeparator); builder.GenerateHeader(CultureManager.GetMenu(VariableName), GetFilterValues()); GetGraphCategoriesAndDatasets(); builder.ExportGraph(XAxisLabel, YAxisLabel, GraphCategories, GraphDataSet); Session["CSV_EXPORT"] = builder.Build(); Session["CSV_FILE_NAME"] = "report"; OpenWin(String.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA")); }
/// <summary> /// Defines how to generate the csv exported report header. /// </summary> /// <param name="builder"></param> protected virtual void GenerateCsvHeader(GraphToCsvBuilder builder) { }