Resizing individual Columns of Schedule Grid

4 posts, 0 answers
  1. Matheswari
    Matheswari avatar
    1 posts
    Member since:
    Oct 2016

    Posted 26 Oct 2016 Link to this post

     Is there any direct feature available to resize the columns in grid by hovering over the left/right border of each Column and clicking/dragging to resize the column width or what is the approach to achieve this.
  2. Hristo
    Admin
    Hristo avatar
    918 posts

    Posted 27 Oct 2016 Link to this post

    Hi Matheswari,

    Thank you for writing.

    The required functionality is not supported out of the box. You can, however, achieve the desired behavior by manually handling the mouse events in the scheduler and calculate the width while dragging a particular column: http://docs.telerik.com/devtools/winforms/scheduler/views/day-view#modifying-the-size-of-day-view-columns.

    While investigating this scenario I isolated an issue with the mentioned above method. The issue is logged in our feedback portal. I have also added a vote for it on your behalf, additionally, you can subscribe to the item and be updated with its status changes: 
    FIX. RadScheduler - the SetColumnWidth method is not working in the SchedulerDayViewElement class. Your Telerik points are also updated accordingly.

    I am sending you attached a sample project demonstrating the suggested approach as well as a short video showing the result on my end.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
  3. Scott
    Scott avatar
    1 posts
    Member since:
    Apr 2016

    Posted 04 Apr in reply to Hristo Link to this post

    Hi Hristo:

    I am interested in this solution and see that the issue for "FIX.RadScheduler - the SetColumnWidth..." says it is completed. I downloaded the sample project you attached to this forum post and have the latest version of telerik controls on my machine. But the resize does not work in Month View. Is there some code change needed?

    Thanks.

  4. Hristo
    Admin
    Hristo avatar
    918 posts

    Posted 05 Apr Link to this post

    Hi Scott,

    Thank you for writing.

    The mentioned issue was fixed in the R1 2017 release. The project in my previous post is handling the day and week views. By following the same approach it can be extended to work with the Month and Timeline view as well as when grouped.

    I am attaching an updated version of the solution.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top