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

Hide the GridView part

3 Answers 71 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 31 Oct 2013, 12:05 PM
Hello there,

is it posssible to hide the complete GridView part of RadGanttView, therefore only show the timeline part?

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosen Vladimirov
Telerik team
answered on 05 Nov 2013, 09:03 AM
Hi Marcus,

In order to achieve this you just have to remove all Columns that you've defined. The following code will not show the "GridView" part as there aren't columns defined:
<telerik:RadGanttView x:Name="ganttView" TasksSource="{Binding Tasks}" />

Hope this helps. Feel free to contact us in case you have any problems or concerns.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Marcus
Top achievements
Rank 1
answered on 05 Nov 2013, 09:28 AM
This is my Code:

RadGanttView myGantt = new RadGanttView()
{
     Name = "GanttOverlay",
     Width = this.columnControl.IntervalsTotalWidth
};
             
myGantt.SetValue(Grid.RowProperty, 1);
myGantt.SetValue(Grid.ColumnProperty, 1);
myGantt.SetValue(Grid.RowSpanProperty, this.MainGrid.RowDefinitions.Count - 1);
 
myGantt.Columns.Clear();
myGantt.TasksSource = new ObservableCollection<GanttTask>();
 
this.MainGrid.Children.Add(myGantt);

It still shows the GridView part. To work with XAML code is not possible at this point.
0
Marcus
Top achievements
Rank 1
answered on 05 Nov 2013, 11:13 AM
Okay, I've done the last update, now it's hidden. Thanks anyway Rosen.
Tags
GanttView
Asked by
Marcus
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Marcus
Top achievements
Rank 1
Share this question
or