This is a migrated thread and some comments may be shown as answers.

Dynamically change the number of weeks

4 Answers 51 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 13 Jun 2011, 11:57 AM
Dynamically change the number of weeks based on the active dates for the current month.

 

How to disable unwanted Week?

ie how to change the no of weeks displayed (default is 6 weeks) to 5 weeks in the current month?



Its Urgent.

4 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 14 Jun 2011, 11:40 AM
Hello Anand,

The MonthView will display as many weeks as needed to accomodate all VisibleDays. To show 5 weeks for some of the months you could bind VisibleDays to CurrentDate with some converter that will return 35 days instead of 42 for the corresponding months.

Kind regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Anand
Top achievements
Rank 1
answered on 20 Jun 2011, 10:04 AM
Can we do using any templating approach.?
0
Valeri Hristov
Telerik team
answered on 20 Jun 2011, 10:31 AM
No, retemplating will not help. The aforementioned solution is the only one that will work correctly.

Regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Anand
Top achievements
Rank 1
answered on 21 Jun 2011, 08:35 AM
ok.

Thanks for your Help.
Tags
ScheduleView
Asked by
Anand
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Anand
Top achievements
Rank 1
Share this question
or