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

RadGridView is empty when placed in the LargeContent of a RadFluidContentControl

1 Answer 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Veteran
Anthony asked on 28 Aug 2014, 12:52 AM
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>

1 Answer, 1 is accepted

Sort by
0
Anthony
Top achievements
Rank 1
Veteran
answered on 28 Aug 2014, 01:42 AM
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
Tags
GridView
Asked by
Anthony
Top achievements
Rank 1
Veteran
Answers by
Anthony
Top achievements
Rank 1
Veteran
Share this question
or