Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TrailingWeekCount wrong most of the time (Read 4253 times)
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
TrailingWeekCount wrong most of the time
Mar 16th, 2010 at 10:06am
Print Post  
TrailingWeekCount shows one week too much most of time.

<schedule:Calendar.MonthSettings>
  <schedule:MonthSettings WeekHeaderStyle="Left" ShowPaddingDays="True" LeadingWeekCount="2" TrailingWeekCount="2">

For march 2010 the last real week is
W15 29.03. - 04.04.

and then there are 3 trailing weeks
W16 05.04. - 11.04.
W17 12.04. - 18.04.
W18 19.04. - 25.04.

For february there are even 4 trailing weeks! (W11-W14)

The only months in 2010 with correct trailing weeks are May and August.
  

/\/\arkus.
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: TrailingWeekCount wrong most of the time
Reply #1 - Mar 16th, 2010 at 10:53am
Print Post  
Actually this is the intended behavior. The idea is that the SingleMonth view displays a constant number of weeks (6, by default) regardless of the currently displayed month. The LeadingWeekCount and TrailingWeekCount properties simply expand this 6-week interval in the corresponding direction.

Regards,
Meppy
  
Back to top
 
IP Logged
 
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Re: TrailingWeekCount wrong most of the time
Reply #2 - Mar 18th, 2010 at 2:18pm
Print Post  
I just noticed that the WeekHeaders are totally wrong, most likely shifted by LeadingWeekCount

W15 is not 29.03.-04.04 but is 12.04.-18.04.

So when I click on the WeekHeader labeled "15" I get an MonthWeekHeaderClick-Event where date is 2010-04-12
  

/\/\arkus.
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: TrailingWeekCount wrong most of the time
Reply #3 - Mar 18th, 2010 at 2:41pm
Print Post  
This is most likely a bug. We will fix it.

Meppy
  
Back to top
 
IP Logged
 
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Re: TrailingWeekCount wrong most of the time
Reply #4 - May 11th, 2010 at 12:26pm
Print Post  
Is there already a version available with this fix?
  

/\/\arkus.
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: TrailingWeekCount wrong most of the time
Reply #5 - May 11th, 2010 at 1:30pm
Print Post  
I seem to have forgotten to post the last build. Can you try it from here:

https://mindfusion.eu/_pln_trial/MindFusion.Scheduling.Wpf.2.1i.zip

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint