I'm using the Calendar along with the ScheduleView and I need to show weekdays only, NO weekends. I can't figure out how to get rid of these days. They need to be removed and they should not be accessible when using the forward and back buttons on the scheduleview. Any ideas?
Thanks,
Greg
Thanks,
Greg
10 Answers, 1 is accepted
0
Hi Greg,
You can achieve this in WeekViewDefinition by setting VisibleDays and FirstDayOfWeek properties like this:
Let us know whether this helps.
Kind regards,
Yana
the Telerik team
You can achieve this in WeekViewDefinition by setting VisibleDays and FirstDayOfWeek properties like this:
<
telerik:RadScheduleView.ViewDefinitions
>
<
telerik:WeekViewDefinition
VisibleDays
=
"5"
FirstDayOfWeek
=
"Monday"
/>
</
telerik:RadScheduleView.ViewDefinitions
>
Let us know whether this helps.
Kind regards,
Yana
the Telerik team
0

Greg
Top achievements
Rank 1
answered on 17 Mar 2011, 07:30 PM
Thanks but I left some info out. We are only showing single days in the schedule view and what you have suggested is for a week view. Also, it would be nice to get rid of the entire Saturday/Sunday columns in the calendar. Right now I have disabled the weekend days using the day template selector but that isn't exactly what we wanted to do but it should be ok.
Thanks for the reply,
Greg
Thanks for the reply,
Greg
0
Hello Greg,
You can also subscribe to VisibleRangeChanged event and change the CurrentDate of RadScheduleView when it navigates to Saturday or Sunday. Here is a sample code:
Kind regards,
Yana
the Telerik team
You can also subscribe to VisibleRangeChanged event and change the CurrentDate of RadScheduleView when it navigates to Saturday or Sunday. Here is a sample code:
private
void
scheduleView_VisibleRangeChanged(
object
sender, EventArgs e)
{
var dayOfWeek = scheduleView.VisibleRange.Start.DayOfWeek;
if
(dayOfWeek.Equals(DayOfWeek.Saturday))
{
Dispatcher.BeginInvoke((Action)(() => {
scheduleView.CurrentDate = scheduleView.CurrentDate.AddDays(2);
}));
}
if
(dayOfWeek.Equals(DayOfWeek.Sunday))
{
Dispatcher.BeginInvoke((Action)(() =>
{
scheduleView.CurrentDate = scheduleView.CurrentDate.AddDays(-2);
}));
}
}
Kind regards,
Yana
the Telerik team
0

Greg
Top achievements
Rank 1
answered on 25 Mar 2011, 02:56 PM
Thanks Yana! I'll give that a try.
Thanks,
Greg
Thanks,
Greg
0

Santhosh
Top achievements
Rank 1
answered on 03 Jun 2011, 08:59 AM
Hi, is this possible in the month view - show only working days, no Saturday, Sundays.
Thanks,
Santhosh
Thanks,
Santhosh
0
Hi Santhosh,
I'm afraid that you cannot remove the weekend days from MonthView. I would suggest to make them read-only using SpecialSlotsSource property of the ScheduleView. Please check this help article for more details.
Greetings,
Yana
the Telerik team
I'm afraid that you cannot remove the weekend days from MonthView. I would suggest to make them read-only using SpecialSlotsSource property of the ScheduleView. Please check this help article for more details.
Greetings,
Yana
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

Santhosh
Top achievements
Rank 1
answered on 03 Jun 2011, 02:16 PM
Thanks Yana.
Do you have any plans to include such a feature in the near future. Let me know.
-Santhosh
Do you have any plans to include such a feature in the near future. Let me know.
-Santhosh
0
Hello Santhosh,
Currently we don't have plans to implement this feature, but I've logged it and it will be considered for future releases.
Regards,
Yana
the Telerik team
Currently we don't have plans to implement this feature, but I've logged it and it will be considered for future releases.
Regards,
Yana
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

Thomas
Top achievements
Rank 1
answered on 06 Sep 2011, 03:55 PM
Just wanted to let you know, that we would need that feature (monthview without weekends), too.
cheers,
Thomas
cheers,
Thomas
0
Hello Thomas,
Thank you for sending your feedback.
All the best,
Yana
the Telerik team
Thank you for sending your feedback.
All the best,
Yana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>