or
Page.Validate();
in the Page_load event on the server activates the required field validators that are defined against text boxes, but I can't get the validator associated with the combobox to show. <table> <tr> <td><telerik:RadComboBox id="ddlCostCategory" DataTextField="Name" DataValueField="ID" runat="server" SkinID="WideDll" ></telerik:RadComboBox></td> <td><asp:RequiredFieldValidator runat="server" ControlToValidate ="ddlCostCategory" ID="reqValCostCategory" Text="*" ErrorMessage="Cost Category is required" InitialValue="[Select...]" ></asp:RequiredFieldValidator></td> </tr> </table> var query2 = from c in PNGC_SmartGridContext.CostCategories select c; IList<CostCategory> _costCategories = query2.ToList<CostCategory>(); _costCategories.Insert(0, new CostCategory() { ID = 0, Name = "[Select...]" }); ddlCostCategory.DataSource = _costCategories; ddlCostCategory.DataBind();<td> <asp:RadioButtonList ID="CommentLevel_RadioButtonList" runat="server"DataSourceID="CommentLevel_SqlDataSource" DataTextField="CodeValue"DataValueField="CodeName" RepeatDirection="Horizontal"
SelectedValue='<%# Eval("CommentCategory") %>'> </asp:RadioButtonList></td>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