﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - Day header color changes on mouse over</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Day-header-color-changes-on-mouse-over/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Day header color changes on mouse over</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Day-header-color-changes-on-mouse-over/</link><pubDate>Mon, 31 May 2010 04:42:22 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;I believe this is the previous issue you mention in your post, &lt;a target="_blank" href="../../WebGrid/Hierarchical-Batch-Update-when-WebGrid-bound-to-Custom-Object/"&gt; Modify scheduler Day Header color&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Further test indicate that in Week view and Month view, since the header will have dynamic style, the custom style will be overridden by the scheduler header style. For such scenario, you will need to create a HTML element, a DIV, in the header and move all the child node of the header to the newly created DIV. The style will be appended to this newly created DIV. Here is the modified snippet:&lt;/p&gt;&lt;pre&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;    .customHead&lt;br /&gt;    {&lt;br /&gt;        background-image: none;&lt;br /&gt;        background-color: Black;&lt;br /&gt;        color: White;&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript" language="javascript"&amp;gt;&lt;br /&gt;    function WebScheduler1_OnAfterRenderView(controlId, viewMode)&lt;br /&gt;    {&lt;br /&gt;        var sched = ISGetObject(controlId);&lt;br /&gt;        var headerElem = null;&lt;br /&gt;        var type = "";&lt;br /&gt;&lt;br /&gt;        //Setting all date 1 to have black background color with white text&lt;br /&gt;        switch (viewMode)&lt;br /&gt;        {&lt;br /&gt;            case "Day":&lt;br /&gt;                headerElem = sched.GetDayDayHeader().getElementsByTagName('td');&lt;br /&gt;                type = 'DayHeader;';&lt;br /&gt;                break;&lt;br /&gt;            case "Week":&lt;br /&gt;                headerElem = sched.GetWeekDayHeader().getElementsByTagName('td');&lt;br /&gt;                type = 'DayHeader;';&lt;br /&gt;                break;&lt;br /&gt;            case "Month":&lt;br /&gt;                headerElem = sched.GetSchedulerTableFrame().getElementsByTagName('td');&lt;br /&gt;                type = 'MonthInboundDateHeader;MonthOutboundDateHeader;';&lt;br /&gt;                break;&lt;br /&gt;            case "Quarter":&lt;br /&gt;                headerElem = sched.GetSchedulerTableFrame().getElementsByTagName('td');&lt;br /&gt;                type = 'YearDayOfWeek;';&lt;br /&gt;                break;&lt;br /&gt;            case "Year":&lt;br /&gt;                headerElem = sched.GetSchedulerTableFrame().getElementsByTagName('td');&lt;br /&gt;                type = 'YearDayOfWeek;';&lt;br /&gt;                break;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        if (headerElem != null)&lt;br /&gt;        {&lt;br /&gt;            for (var i = 0; i &amp;lt; headerElem.length; i&amp;#43;&amp;#43;)&lt;br /&gt;            {&lt;br /&gt;                if (type.indexOf(headerElem[i].getAttribute('type') &amp;#43; ";") != -1 &amp;amp;&amp;amp;&lt;br /&gt;                headerElem[i].getAttribute('d') == '1')&lt;br /&gt;                {&lt;br /&gt;                    var innerContent = headerElem[i].innerHTML;&lt;br /&gt;                    var childs = headerElem[i].childNodes;&lt;br /&gt;&lt;br /&gt;                    var childCount = childs.length;&lt;br /&gt;                    var loop = 0;&lt;br /&gt;&lt;br /&gt;                    var newdiv = document.createElement('div');&lt;br /&gt;                    newdiv.className = "customHead";&lt;br /&gt;                    newdiv.style.height = headerElem[i].clientHeight &amp;#43; "px";&lt;br /&gt;                    newdiv.style.lineHeight = headerElem[i].clientHeight &amp;#43; "px";&lt;br /&gt;                    &lt;br /&gt;                    while (loop &amp;lt; childCount)&lt;br /&gt;                    {&lt;br /&gt;                        newdiv.appendChild(childs[0]);&lt;br /&gt;                        loop&amp;#43;&amp;#43;;&lt;br /&gt;                    }&lt;br /&gt;&lt;br /&gt;                    headerElem[i].appendChild(newdiv);&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;</description></item><item><title>Day header color changes on mouse over</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Day-header-color-changes-on-mouse-over/</link><pubDate>Fri, 28 May 2010 11:02:10 GMT</pubDate><dc:creator>pwbriggs23</dc:creator><description>&lt;p&gt;We were finally able to turn certain day headers orange (help from previous support ticket) but now when a user hovers the mouse over those orange day headers, they turn back to gray. Please assist.&lt;/p&gt;</description></item></channel></rss>