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

GroupPanel in ChildTableView

3 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mischa Müller
Top achievements
Rank 1
Mischa Müller asked on 12 Jan 2009, 03:31 PM
Hi,

how can I hide the GroupPanel in the nested grid of a Table Hierachy?
Further there seem to be a problem with the vertical grid lines in the
nested grid - they do not match the cell width.

Thanks a lot

              Mischa

3 Answers, 1 is accepted

Sort by
0
Hristo Deshev
Telerik team
answered on 14 Jan 2009, 11:26 AM
Hello Mischa Müller,

The easiest way [declaratively] to hide the group panel is to set the ShowGroupPanel property to false. To do that for hierarchy children only, you need to create a global style that targets GridViewDataControl.

The vertical grid lines erroneous behavior on column resize is a bug that we confirmed a couple of days ago. You can work around it by hiding the GridViewBackground control (the one that displays the grid lines).  Here is the RadGridView declaration containing the complete style that hides both the group panel and the column backgrounds:

<telerik:RadGridView Name="RadGridView1"
    <telerik:RadGridView.Resources> 
        <Style TargetType="telerik:GridViewDataControl"
            <Setter Property="ShowGroupPanel" Value="False"></Setter> 
            <Style.Resources> 
                <Style TargetType="telerik:GridViewBackground"
                    <Setter Property="Visibility" Value="Hidden" /> 
                </Style> 
            </Style.Resources> 
        </Style> 
    </telerik:RadGridView.Resources> 
</telerik:RadGridView> 


Kind regards,
Hristo Deshev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
C
Top achievements
Rank 1
answered on 19 Aug 2009, 05:54 PM
Hello,

Related to the gridlines for child grids in a GridView with 
hierarchy, the style mentioned here does not work. - as the GridViewBackground does not exist.

What is the solution to 
get proper alignment of GridView column headers and row column data for child   
grids in a hierarchy?

Thanks and Regards,

Chetna 
0
Vlad
Telerik team
answered on 20 Aug 2009, 06:50 AM
Hi,

Can you point us to some of our examples where this misalignment can be reproduced?

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Mischa Müller
Top achievements
Rank 1
Answers by
Hristo Deshev
Telerik team
C
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or