Radscheduler time display issue

2 posts, 0 answers
  1. n/a
    n/a avatar
    72 posts
    Member since:
    Jan 2018

    Posted 27 Feb 2020 Link to this post


    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?


  2. Peter
    Peter avatar
    1160 posts

    Posted 02 Mar 2020 Link to this post

    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.

    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.
Back to Top