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

Hide GanttView Columns Programmatically

3 Answers 166 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Prolay
Top achievements
Rank 1
Prolay asked on 22 Nov 2012, 08:48 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Ventzi
Telerik team
answered on 27 Nov 2012, 08:30 AM
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.

0
Prolay
Top achievements
Rank 1
answered on 28 Nov 2012, 06:49 AM
Hi Ventzi,

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


Thanks and Regards,
Prolay
0
Accepted
Ventzi
Telerik team
answered on 28 Nov 2012, 11:55 AM
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.

Tags
GanttView
Asked by
Prolay
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Prolay
Top achievements
Rank 1
Share this question
or