Hide the GridView part

4 posts, 1 answers
  1. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 31 Oct 2013 Link to this post

    Hello there,

    is it posssible to hide the complete GridView part of RadGanttView, therefore only show the timeline part?
  2. Answer
    Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 05 Nov 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 05 Nov 2013 Link to this post

    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.
  5. Marcus
    Marcus avatar
    35 posts
    Member since:
    Aug 2012

    Posted 05 Nov 2013 Link to this post

    Okay, I've done the last update, now it's hidden. Thanks anyway Rosen.
Back to Top