Completed
Last Updated: 17 Aug 2021 11:21 by ADMIN
Release R3 2021
Stephen
Created on: 06 Aug 2021 10:26
Category: Scheduler/Reminder
Type: Bug Report
0
RadSchedulerNavigator: Date label doesn't respect the DisplayedCellsCount in the active view
2 comments
Stephen
Posted on: 06 Aug 2021 10:55
Thanks Nadya - that works in my project
ADMIN
Nadya | Tech Support Engineer
Posted on: 06 Aug 2021 10:33

Hello, Stephen,

To work around this issue you can set the text of the DateLabelElement as shown below:

this.radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
SchedulerTimelineView timelineView = this.radScheduler1.GetTimelineView();
SchedulerTimescale currentScaling = timelineView.GetScaling();
currentScaling.DisplayedCellsCount = 30;

var startDate = this.radScheduler1.ActiveView.StartDate.Date;
var endDate = this.radScheduler1.ActiveView.EndDate.Date;

this.radSchedulerNavigator1.DateLabelElement.Text = String.Format("{0} - {1}", startDate.ToString("yyyy/MM/dd"), endDate.ToString("yyyy/MM/dd"));

I hope this helps.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.