Hide GanttView Columns Programmatically

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

    Posted 22 Nov 2012 Link to this post

    Hi,

    I have two views for the gantt which is a project view and the other is task view. In project view I need to show project status. This column is not needed in the task view, so i need to hide this column. Please suggest a way to do it.

    I have used ColumnDefinition to create a column

    <telerik:ColumnDefinition MemberBinding="{Binding Status}" Header="Status" ColumnWidth="100">
    </telerik:ColumnDefinition>


    Regards,

    Prolay
  2. Answer
    Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 27 Nov 2012 Link to this post

    Hi Prolay,

    I am not sure I understand you correctly, but you could add another GanttView without the status column and then to switch the views according to your needs.

    Greetings,
    Ventzi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Prolay
    Prolay avatar
    27 posts
    Member since:
    Nov 2012

    Posted 28 Nov 2012 Link to this post

    Hi Ventzi,

    It can be maganaged the way you suggested but is it not possible with one control?


    Thanks and Regards,
    Prolay
  5. Answer
    Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 28 Nov 2012 Link to this post

    Hello Prolay,

    Another way to archive this is pro grammatically to get the ColumnDefinitions collection and to add/remove columns at runtime.

    Greetings,
    Ventzi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top