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

Layout issues when columns have IsVisible set to False

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jared Pinchot
Top achievements
Rank 1
Jared Pinchot asked on 16 Mar 2011, 08:33 PM
I've just upgraded to the 2011 Q1 release (version 2011.1.315.1040) and am now seeing a few issues with some of my grids. I've managed to reduce it down to a simple test case:

<UserControl x:Class="TestAysncScalarQuery.MainPage"
    Height="Auto">
    <Grid x:Name="LayoutRoot" Background="White" Width="800">
        <telerik:RadGridView x:Name="gridView" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn IsVisible="False" Width="80" Header="Not Shown 1" UniqueName="Foo"/>
                <telerik:GridViewDataColumn IsVisible="False" Width="40" Header="Not Shown 2" UniqueName="Bar"/>
                <telerik:GridViewDataColumn Width="*" Header="First Vis" UniqueName="Sna"/>
                <telerik:GridViewDataColumn Width="110" Header="Second Vis" UniqueName="Fu"/>
                <telerik:GridViewDataColumn Width="110" Header="Third Vis" UniqueName="Asdf"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</UserControl>

What seems to be happening is the two columns with IsVisible set to false still reserve some room for layout and the column called First Vis appears pushed to the right. Furthermore, the second and third columns do not layout correctly as the second (visible) column is fully visible, but the third is chopped off. I'd expect the second and third visible columns to reserve their space and the first column expand out to the remaining available space.

I've attached a screen shot of result

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Mar 2011, 08:19 AM
Hello,

The bug was reported yesterday and we were able to fix it immediately. The fix will be part of our next internal build - Monday. 

Sorry for the temporary inconvenience!

Regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Jared Pinchot
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or