﻿<?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 - Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</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>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Thu, 03 Jun 2010 23:43:18 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;Did you mean when user click on the modified header, the user will not be redirected to the day view? If so in the new DIV click event handler you will need to abort the click. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function ClickEventHandlerHeader(headerElem)&lt;br /&gt;{    &lt;br /&gt;    event.returnValue = false;&lt;br /&gt;    event.cancelBubble = true;   &lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Thu, 03 Jun 2010 08:17:44 GMT</pubDate><dc:creator>srikantweb007</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;   Thanks for the response. It is working. Can you please tell me how to prevent the click from the user. I mean when user clicked on the header no need to redirect them for newly created div.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Srikant&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Wed, 02 Jun 2010 22:38:47 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;The issue could be replicated in my environment. This issue is caused because the clicked area is the newly added DIV, in order to resolve the issue, we will need to invoke the click event of the original area when we click the new DIV. You will need to add a new onclick event in the newly created DIV. Here is the snippet:&lt;/p&gt;&lt;pre&gt;Listener.Add(headerElem[i], "onclick", ClickEventHandlerHeader, headerElem[i]);&lt;/pre&gt;&lt;p&gt;During this click event handler, you will need to invoke the click for the original element, original snippet from &lt;a target="_blank" href="http://forums.asp.net/p/987493/1276024.aspx"&gt;this post&lt;/a&gt;:&lt;/p&gt;&lt;pre&gt;var inProgress = false;&lt;br /&gt;function ClickEventHandlerHeader()&lt;br /&gt;{&lt;br /&gt;    if (!inProgress)&lt;br /&gt;    {&lt;br /&gt;        inProgress = true;&lt;br /&gt;        if (this.dispatchEvent)&lt;br /&gt;        {&lt;br /&gt;            var e = document.createEvent("MouseEvents");&lt;br /&gt;&lt;br /&gt;            e.initEvent("click", true, true);&lt;br /&gt;            this.dispatchEvent(e);&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            this.click();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    inProgress = false;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Wed, 02 Jun 2010 06:10:55 GMT</pubDate><dc:creator>srikantweb007</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;    Thanks for your response. It is working fine for the day header color (on mouse over)&lt;/p&gt;
&lt;p&gt;The snippet you provide there creating one more issue. In Week view when some one clicks on the day header the application redirected to Day view. But agter I applied the snippet , I got the redirection error.&lt;/p&gt;
&lt;p&gt;When i clicked on the day header it throws an js error.  Please find the attachment.&lt;/p&gt;
&lt;p&gt;Can you please help on this.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Srikant&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Mon, 31 May 2010 04:48:39 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;A user has created a new thread, &lt;a target="_blank" href="http://www.intersoftpt.com/Community/WebScheduler/Day-header-color-changes-on-mouse-over/"&gt; Day header color changes on mouse over&lt;/a&gt;, in which he show a flaw with the provided snippet on Week view and Month view.&lt;/p&gt;&lt;p&gt;The thread also has a modified snippet in order to overcome the flaw. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Wed, 19 May 2010 08:52:44 GMT</pubDate><dc:creator>srikantweb007</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for the response. Please ignore my previous post. I had found out a work wround to achieve the header color for quarter and year view.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Srikant&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Wed, 19 May 2010 02:56:53 GMT</pubDate><dc:creator>srikantweb007</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for the response. It is working fine in month view. Can you please suggest a solutions for Quarter view and Year view.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Srikant&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Tue, 18 May 2010 22:44:06 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;The snippet will modify the header color for all the date in month view, because the matching type in month view is set to &lt;em&gt;'MonthInboundDateHeader;MonthOutboundDateHeader;'&lt;/em&gt;&lt;/p&gt;&lt;p&gt;If you prefer only the current month is modified, please set the &lt;em&gt;type&lt;/em&gt; in the month view to &lt;em&gt;MonthInboundDateHeader;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Tue, 18 May 2010 11:26:50 GMT</pubDate><dc:creator>pwbriggs23</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;Just got this from support and this works except for Month view where the 9th day is shown twice (current month and next month) and both get shaded. Asked another question if there is a way to indicate what month each 9th block is for or some difference between the blocks.&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For such scenario, you could use the OnAfterRenderView client side event handler in order to modify the header day element based on certain condition. Here is the snippet in order to modify the first date in every view to have a black background color with white color:&lt;/p&gt;
&lt;p&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;/p&gt;
&lt;p&gt;    for (var i = 0; i &amp;lt; headerElem.length; i )&lt;br /&gt;    {&lt;br /&gt;        if (type.indexOf(headerElem[i].getAttribute('type') ";") != -1 &amp;&amp;&lt;br /&gt;                    headerElem[i].getAttribute('d') == '1')&lt;br /&gt;        {&lt;br /&gt;            headerElem[i].style.backgroundImage = "none";&lt;br /&gt;            headerElem[i].style.backgroundColor = "Black";&lt;br /&gt;            headerElem[i].style.color = "White";&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Tue, 18 May 2010 11:16:38 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Srikant,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; What I meant is, at this moment, our WebScheduler only can edit the color for all days header. We cannot just set a different color for one particular day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Modify scheduler Day Header color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Modify-scheduler-Day-Header-color/</link><pubDate>Mon, 17 May 2010 03:46:34 GMT</pubDate><dc:creator>srikantweb007</dc:creator><category>Modify Day header color</category><description>&lt;p&gt;HI All, &lt;/p&gt;
&lt;p&gt;     I want to modify my scheduler header color. Ex.  In a week view the day headers are 17 Monday, 18 Tuesday, 19 Wednesday, 20 Thursday etc... I want to modify the 18 Tuesday color(may be background color). How to modify the day header color ? Can any one help on this ?? thanks in advance..&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Srikant&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>