﻿<?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 - GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</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>GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</link><pubDate>Tue, 22 Jun 2010 12:27:22 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Vince,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Forgive me, however, I am not able to replicate your issue. I have tried that and in my end, everything works nicely. I also attached you my screen shot in every view mode, please kindly take a look.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I also attached you the latest build of WebScheduler, perhaps you can simply copy them to your bin folder into your project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it helps. 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>GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</link><pubDate>Tue, 22 Jun 2010 08:55:42 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>Hi Andi,
&lt;p&gt;I updated WebScheduler to version 3.0.1000.5 and WebDesktop to version 3.0.7200.310, but I still have problem regarding that issue.&lt;/p&gt;
&lt;p&gt;I want to color since 2010-03-29 till 2010-04-02, the code I use is the following:&lt;/p&gt;&lt;pre&gt;function WebScheduler1_OnAfterRenderView(controlId, viewMode) {&lt;br /&gt;  var WebScheduler1 = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;  var isHourArea = viewMode != "Timeline" &amp;amp;&amp;amp; viewMode != "Month";&lt;br /&gt;&lt;br /&gt;  var arr = new ISArray();&lt;br /&gt;  arr.Add(new WebSchedulerDateRange(new Date(2010, 2, 29, 0, 0, 0, 0), new Date(2010, 3, 3, 0, 0, 0, 0), 1, "DateTime"));&lt;br /&gt;  var elements = WebScheduler1.GetCellElements(arr);&lt;br /&gt;  SetBackgroundColor(elements, "#555500", isHourArea);&lt;br /&gt;&lt;br /&gt;  return true;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function SetBackgroundColor(elements, color, isHourArea) {&lt;br /&gt;  for (var i = 0; i &amp;lt; elements.length; i&amp;#43;&amp;#43;) {&lt;br /&gt;    var el = elements[i];&lt;br /&gt;    if (el != null) {&lt;br /&gt;      if (isHourArea) {&lt;br /&gt;        el.children[0].style.backgroundColor = color;&lt;br /&gt;      }&lt;br /&gt;      else {&lt;br /&gt;        el.style.backgroundColor = color;&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;as you can see I use the instruction&lt;/p&gt;
&lt;p&gt;arr.Add(new WebSchedulerDateRange(new Date(2010, 2, 29, 0, 0, 0, 0), new Date(2010, 3, 3, 0, 0, 0, 0), 1, "DateTime"));&lt;/p&gt;
&lt;p&gt;that should be correct to get cells since 2010-03-29 till 2010-04-02.&lt;/p&gt;
&lt;p&gt;Now look at the attached images:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;In the month.jpg image there are 2 errors:&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;day 28/03/2010 is green but should be white.&lt;/li&gt;
&lt;li&gt;day 02/04/2010 should be green.&lt;/li&gt;&lt;/ol&gt;
&lt;li&gt;In the year.png image there are 2 errors:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;day 28/03/2010 is green but should be white.&lt;/li&gt;&lt;li&gt;day 01/04/2010 is white and should be green.&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li style=""&gt;In the quarter.png image day 28/03/2010 is green but should be white.&lt;/li&gt;&lt;/ul&gt;Could you check these errors?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Vince&lt;br /&gt;</description></item><item><title>GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</link><pubDate>Tue, 01 Jun 2010 10:01:28 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Vincenzo,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Forgive me, however, I am getting confused in here. As you posted on the first post, you wanted to mark a date from 2010-03-29 until 2010-04-03, in order to do so, here is the snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;arr.Add(new WebSchedulerDateRange(new Date(2010, 2, 29, 0, 0, 0), new Date(2010, 3, 4, 0, 0, 0), 2, "DateTime"));
            &lt;/span&gt;&lt;/pre&gt;
&lt;p /&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; And as you noticed, in your provided code sample you have set them with:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;arr.Add(new WebSchedulerDateRange(new Date(2010, 2, 29, 0, 0, 0), new Date(2010, 3, 3, 0, 0, 0), 2, "DateTime"));
            &lt;/span&gt;&lt;/pre&gt;
&lt;p /&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; In this case, yes, you will mark dates from 2010-03-21 until 2010-03-02. As you might see on my attachment, I have set them with this range and the 2nd April is marked.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it helps. 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>GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</link><pubDate>Tue, 01 Jun 2010 08:47:36 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>Hi Andy,&lt;p&gt;the week view &lt;strong&gt;is an issue&lt;/strong&gt;: the problem is not on the 3rd of April but is on the 2nd of April, look better at the previous attached image WeekView.png: I set the interval&lt;/p&gt;
&lt;p&gt;	 var arr = new ISArray();&lt;br /&gt;arr.Add(new WebSchedulerDateRange(new Date(2010, 2, 29, 0, 0, 0, 0), new Date(2010, 3, 3, 0, 0, 0, 0),
1, "DateTime"));&lt;/p&gt;
&lt;p&gt;the 2nd of April that should be green but is not colored.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item><item><title>GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</link><pubDate>Thu, 27 May 2010 06:06:11 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Vincenzo,&lt;/p&gt;&lt;p&gt;      Just wanted to let you know that the issue has been fixed and the build can be downloaded in &lt;a href="http://www.intersoftpt.com/tdn/downloads/WebSchedulerNET3_0_1000_5.zip " target="_blank"&gt;here&lt;/a&gt;. However, this is a nightly build and the disclaimer is on. Any feedbacks regarding this build is highly appreciated since this particular build has not been tested intensively.&lt;/p&gt;
&lt;p&gt;      However, for week view, it is not a issue. With that kind of range, the disabled time starts from 29th of March 00:00:00 to 3rd of April 00:00:00. 
In this configuration 3rd of April will not be marked, because the disabled time 
ends at 3rd of April 00:00:00. If 3rd of April should be set as disabled time, 
you will need to set the end of disabled time to 3rd of April 23:59:59 or 4th of 
April 00:00:00. &lt;/p&gt;
&lt;p&gt;      Here is the snippet in order to do so:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;arr.Add(new WebSchedulerDateRange(new Date(2010, 2, 29, 0, 0, 0, 0), new Date(2010, 3, 4, 0, 0, 0, 0), 1, "DateTime")); &lt;/pre&gt;
&lt;p&gt;      I hope it helps. Thank you and have a nice day.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Andi Santoso&lt;/p&gt;
&lt;p&gt;&lt;font style="font-size: 13px; "&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</link><pubDate>Tue, 25 May 2010 22:20:29 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Vincenzo,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am able to replicate the issue of yours.&amp;nbsp;I have forwarded this to our Developer team. I will inform you as soon as possible when I get news from them.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; I hope it helps. 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;
&lt;p /&gt;</description></item><item><title>GetCellElements fails if range starts in a month and end in the next month</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/GetCellElements-fails-if-range-starts-in-a-month-and-end-in-the-next-month/</link><pubDate>Tue, 25 May 2010 08:10:14 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I want to color days since 2010-03-29 till 2010-04-03, I used the code below:&lt;/p&gt;&lt;pre&gt;function SetBackgroundColor(elements, color, isHourArea) {&lt;br /&gt;for (var i = 0; i &amp;lt; elements.length; i&amp;#43;&amp;#43;) {&lt;br /&gt;var el = elements[i];&lt;br /&gt;if (el != null) {&lt;br /&gt;if (isHourArea) {&lt;br /&gt;el.children[0].style.backgroundColor = color;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;el.style.backgroundColor = color;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function WebScheduler1_OnAfterRenderView(controlId, viewMode) {&lt;br /&gt;	 var WebScheduler1 = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;	 var isHourArea = viewMode != "Timeline"; &lt;br /&gt;&lt;br /&gt;	 var arr = new ISArray();&lt;br /&gt;	 arr.Add(new WebSchedulerDateRange(new Date(2010, 2, 29, 0, 0, 0, 0), new Date(2010, 3, 3, 0, 0, 0, 0),&lt;br /&gt;1, "DateTime"));&lt;br /&gt;	 var elements = WebScheduler1.GetCellElements(arr);&lt;br /&gt;	 SetBackgroundColor(elements, "#555500", isHourArea);&lt;br /&gt;&lt;br /&gt;	 return true;&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;I have problems with Week, Quarter and Year view, look at the screen shots:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;in the quarter view: 28 of March should not be colored, and the color is also outside March&lt;br /&gt;&lt;/li&gt;&lt;li style=""&gt;in the year view: 28 of March should not be colored, the color is also outside March and 1 and 2 of April are not colored&lt;/li&gt;&lt;li style=""&gt;in the week view: 2 of April is not colored&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Could someone help me?&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>