RadGridView is empty when placed in the LargeContent of a RadFluidContentControl

2 posts, 0 answers
  1. Anthony
    Anthony avatar
    66 posts
    Member since:
    Aug 2011

    Posted 27 Aug 2014 Link to this post

    Hi,

    When I place a RadGridView in the LargeContent part of a RadFluidContentControl the Column Headers are shown but no data is shown in the grid.

    If I place the exact same RadGradView into the Content part of the same RadFluidContentControl all of the data is shown in the grid.

    Any help would be appreciated.

    Thanks
    Anthony

    <telerik:RadFluidContentControl NormalToSmallThreshold="200 200" NormalToLargeThreshold="500 300">
        <telerik:RadFluidContentControl.SmallContent>
            <TextBlock Text="Small Content" />
        </telerik:RadFluidContentControl.SmallContent>
        <telerik:RadFluidContentControl.Content>
            <TextBlock Text="Normal Content" />
        </telerik:RadFluidContentControl.Content>
        <telerik:RadFluidContentControl.LargeContent>
            <Grid>
                <telerik:RadGridView x:Name="RadGridView"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         CanUserFreezeColumns="False"
                         RowIndicatorVisibility="Collapsed"
                         ItemsSource="{Binding Today}"
                         AutoGenerateColumns="False"
                         BorderThickness="0"
                         CanUserSelect="False"
                         ShowGroupPanel="False">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Header="Task"
                DataMemberBinding="{Binding Path=Task}"
                IsReadOnly="True"
                                        TextWrapping="Wrap"
                                        IsFilterable="False"/>
                    <telerik:GridViewDataColumn Header="Tool"
                            DataMemberBinding="{Binding Path=Tool}"
                                        IsReadOnly="True"
                                        TextWrapping="Wrap"
                                        IsFilterable="False"/>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
            </Grid>
        </telerik:RadFluidContentControl.LargeContent>
    </telerik:RadFluidContentControl>
  2. Anthony
    Anthony avatar
    66 posts
    Member since:
    Aug 2011

    Posted 27 Aug 2014 in reply to Anthony Link to this post

    Hi,

    You can ignore this, I found another article explaining a work around for this issue. I set DataContext={Binding} on the first element in the LargeContent and it now works.

    Thanks
    Anthony
Back to Top