GanttView Grid Width

2 posts, 1 answers
  1. Prolay
    Prolay avatar
    27 posts
    Member since:
    Nov 2012

    Posted 02 Jan 2013 Link to this post

    Hi,

    I want to set the minimum width of the of the Gantt grid which is visible to the user while the screen opens initially.


    Regards
    Prolay
  2. Answer
    Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 03 Jan 2013 Link to this post

    Hello Prolay,

    At this stage there is no built-in way to achieve this, but you could easily override the GanttItemsPresenter Style and redefine the MinWidth of each column in the RadGanntView. The columns in the GanttItemsPresenter template are defined like following:
    <telerik:GanttPresenterPanel.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" MinWidth="3" />
        <ColumnDefinition Width="3*" />
        <ColumnDefinition Width="Auto" />
    </telerik:GanttPresenterPanel.ColumnDefinitions>

    The first column is for the frozen columns, second for the rest of the GanttView grid, the third for the timeline panel and the fourth for the ScrollBar at the end. I've also attached a sample project which demonstrate this solution.

    I hope this helps you further.

    Greetings,
    Ventzi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top