<table id="tbl_Basics" cellpadding="0" cellspacing="0" border="0" width="220"> <tr> <td> <a href='<%# XPath("EventLink").ToString()%>' style="cursor: pointer; text-decoration: none; color: Black; background-image: url('images/Mondaytest.png');"></a> <telerik:RadRotator ID="rotatr_ChurchEvents" RotatorType="AutomaticAdvance" ScrollDirection="Up" ScrollDuration="4000" runat="server" Width="220" DataSourceID="XMLChurchEvents" ItemWidth="220" Height="330" ItemHeight="64" FrameDuration="1" InitialItemIndex="-1" CssClass="rotator"> <ItemTemplate> <div class="itemTemplate" onclick="document.location='<%# XPath("EventLink").ToString()%>'" style="background-image: url('images/Mondaytest.png');"> <div class="dateTime"> <div class="time"> <%# (this.GetTimeOnly(XPath("EventTime").ToString())) %> </div> <div class="date"> <%# XPath("EventDate").ToString() %> </div> </div> <div class="title"> <span> <%# System.Web.HttpUtility.HtmlEncode(XPath("EventText").ToString())%> </span> </div> </div> </ItemTemplate> </telerik:RadRotator> <asp:XmlDataSource ID="XMLChurchEvents" runat="server" XPath="ChurchEvents/Events/EventDetails" DataFile="XML/ChurchEvents.xml" /> </td> </tr> </table><?xml version="1.0" encoding="utf-8" ?> <ChurchEvents> <Events> <!-- USE This Section for weekly events--> <EventDetails> <EventText>Worship Service</EventText> <EventTime>11:00</EventTime> <EventDate>Sunday</EventDate> <EventLink></EventLink> </EventDetails> <!-- Use this section for special events--> <EventDetails> <EventText>Financial Peace</EventText> <EventTime>02:00</EventTime> <EventDate>Sat. Feb. 27</EventDate> <EventLink></EventLink> </EventDetails> </Events> </ChurchEvents><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" > <AjaxSettings> <telerik:AjaxSetting AjaxControlID="tvPages" EventName="onnodedrop"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="tvPages" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnSavePage" EventName="onclick" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="tvPages" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <asp:Panel ID="pnlPageTree" runat="server"> <telerik:RadTreeView ID="tvPages" runat="server" EnableDragAndDrop="true" PersistLoadOnDemandNodes="false" EnableDragAndDropBetweenNodes="true" onnodedatabound="tvPages_NodeDataBound" onnodedrop="tvPages_NodeDrop" ondatabinding="tvPages_DataBinding" > </telerik:RadTreeView> </asp:Panel><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" > <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btnSavePage" EventName="onclick" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlPage" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy><asp:Button ID="btnSavePage" runat="server" Text="Lagre" onclick="btnSavePage_Click" />Hi,
i have some trouble with RadGrid styling. I picked up a skin (Windows7 to be exact) and I tried to customize the look'n'feel of it - basically i wanted to disable the AlternateItemStyling so the whole grid would have a white background and i'd like to keep the 'selected' item styling. I set EnableAlternatingItems to false and to my astonishment my whole grid got a gray-blue like (#d7e8fe) background. Ok. So i started to browse the forums and the documentation, found something but it didn't work out for me.
Cutting the story short - when i set the ItemStyle, AlternatingItemStyle (to Transparent) and SelectedItemStyle(to #d7e8fe) BackColor properties almost everything looks like i want to.. but. Despite i set GridLines to None they still get rendered but that's a minor issue. The major is, when i select an item and then deselect it, RadGrid changes the background color of it back to the gray-blue like ignoring all of my settings. I tried everything, overriding the css styles with the !important switch, setting the colors declaratively, none of it worked as expected.
Sample project can be downloaded from http://www.zumodrive.com/share/ayhoNjVmNT
RadControls version used: 2010.3.1317.35. I'd love to hear some advice from you guys.
Regards,
Rafal

<telerik:RadToolBarButton runat="server" Width="20px" ImageUrl="~/images/transparent.gif"
CssClass="pageNext" ></telerik:RadToolBarButton>a.pageNext img.rtbIcon{ background:transparent url('pageNext.gif') no-repeat 0 0; margin-left: 2px;}a.pageNext:hovered img.rtbIcon{ background:transparent url('pageNextHovered.gif') no-repeat 0 0;}<telerik:RadToolBarButton runat="server" Width="20px" ImageUrl="~/images/transparent.gif"
CssClass="pageNext" HoveredCssClass="pageNextHovered" ></telerik:RadToolBarButton>a.pageNext img.rtbIcon{ background:transparent url('pageNext.gif') no-repeat 0 0; margin-left: 2px;}a.pageNextHovered img.rtbIcon{ background:transparent url('pageNextHovered.gif') no-repeat 0 0;}This is part of a "Search" form, and I have a Submit and Clear button on the page. When Clear is clicked, I need to set the index back to the first item in the list. On ComboBoxes that do not use an ItemTemplate, I can just do this (in code behind):<li><labelclass="labelBlack"for="ReportType">Report Type</label><telerik:RadComboBoxID="cmbReportType"Name="ReportType"runat="server"DataTextField="Value"DataValueField="Key"TabIndex="17"Width="214"MarkFirstMatch="true"AllowCustomText="false"OnClientLoad="OnReportTypeLoad"OnClientDropDownClosing="OnReportTypeDropDownClosing"><ItemTemplate><asp:CheckBoxrunat="server"ID="chkReportType"Text='<%# Eval("Value")%>'/><asp:HiddenFieldrunat="server"ID="ReportTypeID"Value='<%# Eval("Key") %>' /></ItemTemplate></telerik:RadComboBox></li>cmbReportType.SelectedIndex = 0; And that works. But it doesn't work when the ItemTemplate is present. I also tried:cmbReportType.Items[0].Selected = true;Still, no luck. Any thoughts on this?