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

Can't switch ColumnVisibility if EnableColumnVirtualization is false

3 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Heiko Görig
Top achievements
Rank 1
Heiko Görig asked on 17 Jan 2011, 01:13 PM
Hello,

since the latest release (2010.3.1314.1040) switching the visibility of a column doesn't work anymore if EnableColumnVirtualization is set to false. If I set IsVisible to false, nothing happens.
You can try this code:

<

 

 

Grid x:Name="LayoutRoot" Background="White">
    <Grid.RowDefinitions
>
        <RowDefinition Height
="*"/>
        <RowDefinition Height
="Auto"/>
    </Grid.RowDefinitions
>
    <telerik:RadGridView x:Name="gvTest" AutoGenerateColumns="False" EnableColumnVirtualization
="False">
        
<telerik:RadGridView.Columns
>
            <telerik:
GridViewDataColumn
                Header
="Prop1"
                DataMemberBinding="{Binding Prop1
}"/>
            <telerik:
GridViewDataColumn
                
Header
="Prop2"
                DataMemberBinding="{Binding Prop2
}"/>
        
</telerik:RadGridView.Columns>

    </telerik:RadGridView>
    <
Button
        Content
="Switch"
        Grid.Row
="1"
        Click
="Button_Click"/>
</Grid>

 

private

 

 

void Button_Click(object sender, RoutedEventArgs e)
{
    this.gvTest.Columns[1].IsVisible = !this
.gvTest.Columns[1].IsVisible;

}

Could you please fix this as soon as possible.

Heiko

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 17 Jan 2011, 01:50 PM
Hi Heiko Görig,

Thank you for reporting this issue. I have logged it for fixing in our public issue tracking system. You can check its progress here.

Your Telerik points have been updated.

Greetings,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Brian Lam
Top achievements
Rank 1
answered on 24 Jan 2011, 05:14 PM
This issue is marked as "Resolved" in the PITS. Are you planning on updating the Q3 2010 SP1 release? Or is there going to be an SP2?
0
Veselin Vasilev
Telerik team
answered on 24 Jan 2011, 05:16 PM
Hi Heiko Görig,

We have already released the SP1 but the problem was fixed after that.
You can find it in the latest internal build which will be released in the next couple of days.

Kind regards,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Heiko Görig
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Brian Lam
Top achievements
Rank 1
Share this question
or