or
protected void rgDashboardProduction_GridExporting(object source, GridExportingArgs e)
{
IEnumerable<Record> productionRecords = GetDashboardProduction();
IEnumerable<Record> feeRecords = GetDashboardFees();
StringBuilder sb = new StringBuilder();
WorksheetElement workSheet = new WorksheetElement("DashboardProduction"); //create new worksheet
workSheet.Table = ParseRecord(productionRecords);
workSheet.Render(sb); //generate xmlss code
StringBuilder sb2 = new StringBuilder();
WorksheetElement workSheet2 = new WorksheetElement("DashboardFees"); //create new worksheet
workSheet2.Table = ParseRecord(feeRecords);
workSheet2.Render(sb2); //generate xmlss code
string output = string.Concat(sb.ToString(), sb2.ToString());
e.ExportOutput = e.ExportOutput.Replace("</Styles>", "</Styles>" + output); //add the rendered worksheet to the output
}
private TableElement ParseRecord(IEnumerable<Record> records)
{
TableElement table = new TableElement();
RowElement headerRow;
RowElement row;
CellElement cell;
ColumnElement column;
PropertyInfo[] properties = records.First().Properties;
int numColumns = properties.Length;
for (int col = 1; col <= numColumns; col++)
{
column = new ColumnElement();
column.Attributes.Add("ss:Width", (100 * col).ToString());
table.Columns.Add(column);
}
//Add Header Row
headerRow = new RowElement();
foreach (PropertyInfo property in properties)
{
cell = new CellElement();
cell.StyleValue = "headerStyle";
cell.Data.DataItem = property.Name;
headerRow.Cells.Add(cell);
}
//Add Data Rows
foreach (Record record in records)
{
row = new RowElement();
foreach (PropertyInfo property in record.Properties)
{
cell = new CellElement();
cell.Data.DataItem = property.GetValue(record, null);
row.Cells.Add(cell);
}
table.Rows.Add(row);
}
return table;
}
Hi,
I don't want to use RadScheduler skins as embedded resources. I've been able disable those using EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false".
However, I haven't been able to disable the css for the calendar inside the RadScheduler. How do I do this?
Thanks,
Andre