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

Radscheduler time display issue

1 Answer 89 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Veteran
Dev asked on 27 Feb 2020, 01:30 PM

Hi,

We are setting the ResourcesPerView property as 3 for the rad-scheduler on code behind.
rdSched.ActiveView.ResourcesPerView = 10

Screeshot link
If it is not set, it shows 2 columns. But in existing project, it displays all the columns as mentioned on the below screenshot.
Existing Screenshot link
Without setting the ResourcesPerView is it possible to display the columns as per the screenshot?

 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Mar 2020, 11:40 AM

Hello Rick,

Thank you for contacting us.

I am not sure that I understand your scenario correctly, but I would like to suggest playing with the DisplayedCellsCount property which specifies the number of cells to be displayed in the view.

SchedulerTimescale currentScaling = timelineView.GetScaling();
currentScaling.Format = "dd MMM";
currentScaling.DisplayedCellsCount = 8;

You can modify the size of the columns with  SetColumnWidth and GetColumnWidth methods. The values passed to the SetColumnWidth method are proportional and the actual width of the columns is calculated based on them. By default, all columns have a value of 1 and therefore if you set a value of 2 to any column, it will stay twice as bigger compared to the others.

SchedulerTimelineViewElement viewElement = (SchedulerTimelineViewElement)this.radScheduler1.ViewElement;
viewElement.SetColumnWidth(1, 2);

Please, refer to the Timeline View article for more details and properties.

I hope this helps.

Regards,
Peter
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Scheduler and Reminder
Asked by
Dev
Top achievements
Rank 1
Veteran
Answers by
Peter
Telerik team
Share this question
or