or
protected void CreateGridStructure(){ RadGrid1.MasterTableView.DataKeyNames = new string[] { "ElementoJerarquia.Parent.Id", "ElementoJerarquia.Id" }; RadGrid1.MasterTableView.ClientDataKeyNames = new string[] { "Id", "Numero", "Responsable.NombreCompleto", "ElementoJerarquia.Nombre" }; RadGrid1.MasterTableView.FilterExpression = "ElementoJerarquia.Parent.Id IS NULL"; RadGrid1.MasterTableView.HierarchyLoadMode = GridChildLoadMode.Client; RadGrid1.MasterTableView.SelfHierarchySettings.KeyName = "ElementoJerarquia.Parent.Id"; RadGrid1.MasterTableView.SelfHierarchySettings.ParentKeyName = "ElementoJerarquia.Id"; }.RadScheduler_WebBlue .rsContentTable .rsSatCol,
.RadScheduler_WebBlue .rsContentTable .rsSunCol
{
background:#8B8F91;
border-bottom-color:#d2d8db;
}
When first entring the screen, it is still the light blue. If I change to 24-hour, it is the new dark grey I specified. If I change back to Business Hours, it is then changed to the Dark Grey. How do I get the Dark Grey to show when I first enter the screen for the first time?
Thanks,
Susan

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title></title> </head> <body> <center> <form id="form1" runat="server" method="post" action=""> <table style="background:#cccccc" cellpadding="2" cellspacing="3"> <tr align="center"> <td></td> <td align="right"><label>Login: </label></td> <td align="left"><input type="text" id="login" style="width:140px" maxlength="30" /></td> <td></td> </tr> <tr align="center"> <td></td> <td align="right"><label>Password: </label></td> <td align="left"><input type="text" id="password" style="width:140px" maxlength="30" /></td> <td></td> </tr> </table> <br /> <input type="button" value="Login" style="width:65px;" /> </form> </center> <script type="text/javascript"> document.forms["form1"]["login"].focus(); </script> </body> </html> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MemberJoin._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title></title> </head> <body> <center> <form id="form1" runat="server" method="post" action=""> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" /> <table style="background:#cccccc" cellpadding="2" cellspacing="3"> <tr align="center"> <td></td> <td align="right"><label>Login: </label></td> <td align="left"><input type="text" id="login" style="width:140px" maxlength="30" /></td> <td></td> </tr> <tr align="center"> <td></td> <td align="right"><label>Password: </label></td> <td align="left"><input type="text" id="password" style="width:140px" maxlength="30" /></td> <td></td> </tr> </table> <br /> <input type="button" value="Login" style="width:65px;" onclick="validateLogin()" /> </form> </center> <script type="text/javascript"> document.forms["form1"]["login"].focus(); </script> </body> </html> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Web.Test" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <asp:ScriptManager runat="server" /> <telerik:RadGrid ID="grid" runat="server" AutoGenerateColumns="False"> <MasterTableView> <Columns> <telerik:GridBoundColumn DataField="column1" UniqueName="column1" /> <telerik:GridBoundColumn DataField="column2" UniqueName="column2" /> <telerik:GridBoundColumn DataField="column3" UniqueName="column3" /> <telerik:GridBoundColumn DataField="column4" UniqueName="column4" /> <telerik:GridBoundColumn DataField="column5" UniqueName="column5" /> </Columns> </MasterTableView> </telerik:RadGrid> <asp:Button ID="btnButton" runat="server" Text="Press Me" /> </div> </form></body></html>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Telerik.Web.UI;namespace Web{ public partial class Test : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { grid.NeedDataSource += new Telerik.Web.UI.GridNeedDataSourceEventHandler(grid_NeedDataSource); btnButton.Click += new EventHandler(btnButton_Click); } void btnButton_Click(object sender, EventArgs e) { var columns = new string[] { "column5", "column2" }; List<GridColumn> items = grid.Columns.Cast<GridColumn>().ToList(); grid.Columns.Clear(); for (int i = 0; i < columns.Count(); i++) { // Adding visible columns
GridColumn column = items.FirstOrDefault(a => a.UniqueName == columns[i]); column.Visible = true; grid.Columns.Add(column); } for (int i = 0; i < items.Count; i++) { // Adding invisible columns
if (!columns.Contains(items[i].UniqueName)) { items[i].Visible = false; grid.Columns.Add(items[i]); } } grid.Rebind(); } void grid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { grid.DataSource = Enumerable.Range(0, 5).Select(i => new { column1 = 1 * Math.Pow(10, i), column2 = 2 * Math.Pow(10, i), column3 = 3 * Math.Pow(10, i), column4 = 4 * Math.Pow(10, i), column5 = 5 * Math.Pow(10, i), }); } }}int indeks = 0; foreach (GridDataItem item in RadGNaglowek.MasterTableView.Items) { if (item.Selected) { indeks = item.ItemIndex + 1; if (item.ItemIndex != RadGNaglowek.MasterTableView.Items.Count - 1) item.Selected = false; } } if (indeks == RadGNaglowek.PageSize) { indeks = 0; RadGNaglowek.CurrentPageIndex = RadGNaglowek.CurrentPageIndex + 1; RadGNaglowek.MasterTableView.Rebind(); }