Exemplo n.º 1
0
 private void DoExportToExcel(string fileName, JQGridState gridState, DataTable dataSource)
 {
     DataGrid exportGrid = this.GetExportGrid();
     exportGrid.DataSource = dataSource;
     exportGrid.DataBind();
     this.RenderExcelToStream(exportGrid, fileName);
     this._exportActive = true;
 }
Exemplo n.º 2
0
 private void DoExportGridData(JQGridState gridState, DataTable dataSource)
 {
     this._exportActive = true;
     this._filteredExportCallBack(dataSource);
 }
Exemplo n.º 3
0
 public void GetExportData(JQGridState gridState, JQGridExportDataCallBack callBack)
 {
     this._filteredExportActive = true;
     this._filteredGridState = gridState;
     this._filteredExportCallBack = callBack;
     this.FilterDataSource(gridState);
 }
Exemplo n.º 4
0
 internal void FilterDataSource(JQGridState gridState)
 {
     this.QueryString = gridState.QueryString;
     this.ProcessCallBack();
 }
Exemplo n.º 5
0
 public void ExportToExcel(string fileName, JQGridState gridState)
 {
     this._filteredExportFileName = fileName;
     this._filteredGridState = gridState;
     this._filteredExcelExportActive = true;
     this.FilterDataSource(gridState);
 }