Welcome to the Xceed Community | Help
Community Search  

Group Level Indicator Pane doesn't dissapear

Sort Posts: Previous Next
  •  06-12-2007, 12:18 AM Post no. 8440

    Group Level Indicator Pane doesn't dissapear

    I'm using following XAML code...

    <Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" DockPanel.Dock="Top" Height="150">

    <Grid.Resources>
    <Style TargetType="{x:Type xcdg:GroupLevelIndicatorPane}">
    <Setter Property="Visibility" Value="Collapsed"/>
    </Style>
    </Grid.Resources>

    <xcdg:DataGridControl x:Name="SelectInformation" HideSelection="True" NavigationBehavior="RowOnly" ReadOnly="True" />

    </Grid>

    But the Group Level Indicator Pane doesn't dissapear...

    Is something wrong?
  •  03-11-2008, 3:43 PM Post no. 8441 in reply to 8440

    Re: Group Level Indicator Pane doesn't dissapear

    <xceed:DataGridControl.Resources>
    <Style TargetType="xceed:GroupByControl">
    <Setter Property="Visibility" Value="Collapsed" />
    </Style>
    </xceed:DataGridControl.Resources>
  •  03-12-2008, 10:25 AM Post no. 8442 in reply to 8440

    Re: Group Level Indicator Pane doesn't dissapear

    The style you are using should collapse the GroupLevelIndicatorPane, which is, in TableView, located to the left of groups to display their indentation/level.

    <Style TargetType="{x:Type xcdg:GroupLevelIndicatorPane}">
    <Setter Property="Visibility" Value="Collapsed"/>
    </Style>

    Are you certain that it is the GroupLevelIndicatorPane that you are trying to hide?
    Technical Writer - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
  •  06-09-2008, 3:05 PM Post no. 12789 in reply to 8442

    Re: Group Level Indicator Pane doesn't dissapear

    The documentation seems to be incorrect.  When I use this code:

            <Style TargetType="{x:Type xcdg:GroupLevelIndicatorPane}">
                <Setter Property="Visibility" Value="Collapsed"/>
            </Style>

    The grouping pane does not disappear.  However, when I use this code:

            <Style TargetType="xcdg:GroupByControl">
                <Setter Property="Visibility" Value="Collapsed" />
            </Style>

    It does disappear.  (This is with Xceed WPF Pro 2.0 ..)

     

    Thanks to Diego above for saving me tons of time trying to get this to work !!

  •  06-10-2008, 8:16 AM Post no. 12799 in reply to 12789

    Re: Group Level Indicator Pane doesn't dissapear

    The GroupLevelIndicatorPane appears to the left of the groups to provide indentation, while the GroupByControl appears at the top of the grid to allow column headers to be dragged and groups created. These are 2 different controls so it is quite normal that one does not hide when you try to hide to other Wink

    Technical Writer - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
  •  09-05-2008, 1:29 PM Post no. 14949 in reply to 12799

    Re: Group Level Indicator Pane doesn't dissapear

    I get an error when I try either one:

     System.InvalidOperationException was unhandled
    Message: Items collection must be empty before using ItemsSource.

     I don't even know what this is trying to tell me.

    jp

  •  09-05-2008, 5:16 PM Post no. 14960 in reply to 14949

    Re: Group Level Indicator Pane doesn't dissapear

    The error means that you are trying to bind the grid while there are items in the Items collection. You cannot manually add items to the Items collection AND bind through the ItemsSource property.
    Technical Writer - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
  •  11-07-2008, 10:35 AM Post no. 16737 in reply to 14960

    Re: Group Level Indicator Pane doesn't dissapear

    hmm.  Then why do I only get the error if I try to hide the groupBy panel?
  •  11-16-2008, 11:12 PM Post no. 16918 in reply to 16737

    Re: Group Level Indicator Pane doesn't dissapear

    You can get that error by leaving out the "DataGridControl.View" element in the Xaml. Consider the sample below. If you leave out the bold lines, the Xaml is still valid and it compiles and runs, but gives the same exception you were getting.

                        <DataGrid:DataGridControl.View>
                            <Views:TableView UseDefaultHeadersFooters="False" >
                                <Views:TableView.FixedFooters>
                                    <DataTemplate>
                                        <DataGrid:InsertionRow />
                                    </DataTemplate>
                                </Views:TableView.FixedFooters>
                            </Views:TableView>
                        </DataGrid:DataGridControl.View>

    hth

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.