﻿<?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 - How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-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>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Tue, 18 May 2010 06:06:32 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Tue, 18 May 2010 05:31:44 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi Yudy,&lt;/p&gt;&lt;p&gt;I solved with the week view: I'm using Internet Explorer 8, after I disabled the compatibility view and after i changed the doctype from&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/pre&gt;
&lt;p&gt;to&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;&lt;/pre&gt;
&lt;p&gt;cells are colored correctly.&lt;/p&gt;
&lt;p&gt;For the Month view I have still to use el.style.backgroundColor to have cells colored, and for me this is fine.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vince.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Tue, 18 May 2010 00:40:58 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;... &lt;p&gt;for Day and Week view the cells are colored like in the attached image &lt;/p&gt;... &lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I have seen the attached screenshot and tried to reproduce the problem in my local end, but my effort was not successful. The cell of my WebScheduler is colored with yellow without any white-space between yellow cells. I have tested it on five different browsers: Internet Explorer 8; Mozilla Firefox 3.6.3; Safari 4.0.5; Google Chrome 4.1.249.1064 (45376); and Opera 10.53. The screenshots of the page on each browser are attached.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Could you please kindly let us know what browser and the version that you are using?&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;... &lt;p&gt;in Month view the cells are not colored at all. So I'm using&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;el.style.backgroundColor&lt;/pre&gt;for all views. I'm doing right or there is something wrong with that? ... &lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to color cells in other view mode of WebScheduler, you’ll need to ensure that you have got the correct cell elements that you wish to be colored. You may use ‘el.style.backgroundColor’ as long as this line suits with the element structure that about to be colored.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Mon, 17 May 2010 05:45:15 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;&lt;p&gt;here the image. As you can see there are white spaces between yellow cells.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vince.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Fri, 14 May 2010 18:13:55 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The “isHourArea” is used to determine whether the cell element is belongs to hour area of WebScheduler or the all day event cell area of WebScheduler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;For your information, your attached image is blank and I don’t see any hint in there. Could you please kindly re-attach it so that I can assist you further?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Fri, 14 May 2010 03:24:56 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi Yudi&lt;br /&gt;&lt;br /&gt;this work perfeclty, thanks.&lt;br /&gt;&lt;br /&gt;Anyway I do not understand the "if (isHourArea)" instruction: in my tests if I use&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;el.children[0].style.backgroundColor&lt;/pre&gt;for Day and Week view the cells are colored like in the attached image, and in Month view the cells are not colored at all. So I'm using&lt;br /&gt;&lt;pre&gt;el.style.backgroundColor&lt;/pre&gt;for all views. I'm doing right or there is something wrong with that?&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Vince.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Thu, 13 May 2010 17:05:13 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;If you are using following approach (as shown in the snippet script below) to set color on the specific cells of WebScheduler,&lt;/span&gt;&lt;/p&gt;&lt;pre style="font-family: courier new; font-size: 9pt"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;script&lt;/span&gt;&lt;span style="color: red"&gt; type&lt;/span&gt;&lt;span style="color: blue"&gt;="text/javascript"&amp;gt;&lt;/span&gt;
    &amp;lt;!--
    &lt;span style="color: blue"&gt;function&lt;/span&gt; SetCellElementsByDateTime() {
        &lt;span style="color: blue"&gt;var&lt;/span&gt; s = ISGetObject(&lt;span style="color: #a31515"&gt;"WebScheduler1"&lt;/span&gt;);

        &lt;span style="color: blue"&gt;var&lt;/span&gt; arr = &lt;span style="color: blue"&gt;new&lt;/span&gt; ISArray();
        arr.Add(&lt;span style="color: blue"&gt;new&lt;/span&gt; WebSchedulerDateRange(&lt;span style="color: blue"&gt;new&lt;/span&gt; Date(2008, 1, 25, 5, 0, 0), &lt;span style="color: blue"&gt;new&lt;/span&gt; Date(2008, 1, 25, 21, 0, 0), 2, &lt;span style="color: #a31515"&gt;"DateTime"&lt;/span&gt;));

        &lt;span style="color: blue"&gt;var&lt;/span&gt; elements = s.GetCellElements(arr);
        &lt;span style="color: blue"&gt;var&lt;/span&gt; flag = s.ViewSettings.SelectedViewMode == &lt;span style="color: #a31515"&gt;"Timeline"&lt;/span&gt; ? &lt;span style="color: blue"&gt;false&lt;/span&gt; : &lt;span style="color: blue"&gt;true&lt;/span&gt;;
        SetBackgroundColor(elements, flag);
    }

    &lt;span style="color: blue"&gt;function&lt;/span&gt; SetBackgroundColor(elements, isHourArea) {
        &lt;span style="color: blue"&gt;for&lt;/span&gt; (&lt;span style="color: blue"&gt;var&lt;/span&gt; i = 0; i &amp;lt; elements.length; i&amp;#43;&amp;#43;) {
            &lt;span style="color: blue"&gt;var&lt;/span&gt; el = elements[i];

            &lt;span style="color: blue"&gt;if&lt;/span&gt; (el != &lt;span style="color: blue"&gt;null&lt;/span&gt;) {
                &lt;span style="color: blue"&gt;if&lt;/span&gt; (isHourArea)
                    el.children[0].style.backgroundColor = &lt;span style="color: #a31515"&gt;"yellow"&lt;/span&gt;;
                &lt;span style="color: blue"&gt;else&lt;/span&gt;
                    el.style.backgroundColor = &lt;span style="color: #a31515"&gt;"yellow"&lt;/span&gt;;
            }
        }
    }
    --&amp;gt;
&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;script&lt;/span&gt;&lt;span style="font-family: times new roman; color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;then you may simply set the same ‘backgroundColor’ style property to be blank (“”) in order to reset the color of the cells.&lt;/span&gt;&lt;/p&gt;&lt;pre style="font-family: courier new; font-size: 9pt"&gt;&lt;span style="color: blue"&gt;    function&lt;/span&gt; SetBackgroundColor(elements, isHourArea) {
        &lt;span style="color: blue"&gt;for&lt;/span&gt; (&lt;span style="color: blue"&gt;var&lt;/span&gt; i = 0; i &amp;lt; elements.length; i&amp;#43;&amp;#43;) {
            &lt;span style="color: blue"&gt;var&lt;/span&gt; el = elements[i];

            &lt;span style="color: blue"&gt;if&lt;/span&gt; (el != &lt;span style="color: blue"&gt;null&lt;/span&gt;) {
                &lt;span style="color: blue"&gt;if&lt;/span&gt; (isHourArea)
                    el.children[0].style.backgroundColor = &lt;span style="color: #a31515"&gt;""&lt;/span&gt;;
                &lt;span style="color: blue"&gt;else&lt;/span&gt;
                    el.style.backgroundColor = &lt;span style="color: #a31515"&gt;""&lt;/span&gt;;
            }
        }
    }&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to reset cell color</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/How-to-reset-cell-color/</link><pubDate>Thu, 13 May 2010 11:05:17 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;i know that using method visitPlanScheduler.GetCellElements(...) I can get cells and then I can change the background color, for example I use this to color a particular day if a resource is selected.&lt;/p&gt;
&lt;p&gt;But after that, how I can reset colors of the cells if the resource is deselected?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Vince.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>