Can't switch ColumnVisibility if EnableColumnVirtualization is false

4 posts, 0 answers
  1. Heiko Görig
    Heiko Görig avatar
    23 posts
    Member since:
    Jun 2012

    Posted 17 Jan 2011 Link to this post

    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
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 17 Jan 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Brian Lam
    Brian Lam avatar
    28 posts
    Member since:
    Apr 2010

    Posted 24 Jan 2011 Link to this post

    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?
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 24 Jan 2011 Link to this post

    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>>
Back to Top