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

[Solved] GridViewDataControl

1 Answer 159 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Koen
Top achievements
Rank 1
Koen asked on 16 Nov 2009, 01:24 PM
I have a customized GridView, based on RadGridView.
In the new release (Q3 2009) GridViewItemsControl has been 'replaced' by GridViewDataControl. After updating my style in generic.xaml (replaced GridViewItemsControl by GridViewDataControl), no records are shown in de gridview...

This is the style I use in generic.xaml:

<Telerik:Office_BlackTheme x:Key="DataGridTheme"/>

<Style TargetType="Framework:ExtDataGrid"
        <Setter Property="VerticalGridlinesBrush" Value="{StaticResource GridViewCellBorderBrush}"/> 
        <Setter Property="Background" Value="{StaticResource GridViewBackgroundItemBackground}"/> 
        <Setter Property="BorderBrush" Value="{StaticResource GridViewBorderBrush}"/> 
        <Setter Property="BorderThickness" Value="1"/> 
 
        <Setter Property="Template"
            <Setter.Value> 
                <ControlTemplate TargetType="Framework:ExtDataGrid"
                    <Border x:Name="PART_MasterGridContainer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
                        <VisualStateManager.VisualStateGroups> 
                            <VisualStateGroup x:Name="GridViewActivity"
                                <VisualState x:Name="Idle"
                                    <Storyboard> 
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_GridViewLoadingIndicator" Storyboard.TargetProperty="Visibility"
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/> 
                                        </ObjectAnimationUsingKeyFrames> 
                                    </Storyboard> 
                                </VisualState> 
                                <VisualState x:Name="Busy"
                                    <Storyboard> 
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_GridViewLoadingIndicator" Storyboard.TargetProperty="Visibility"
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Visible"/> 
                                        </ObjectAnimationUsingKeyFrames> 
                                    </Storyboard> 
                                </VisualState> 
                            </VisualStateGroup> 
                        </VisualStateManager.VisualStateGroups> 
                        <Grid> 
                            <TelerikGridView:GridViewDataControl x:Name="PART_RootItemsControl" Background="{TemplateBinding Background}" ParentRow="{TemplateBinding ParentRow}" ScrollMode="{TemplateBinding ScrollMode}" ShowColumnFooters="{TemplateBinding ShowColumnFooters}" ShowColumnHeaders="{TemplateBinding ShowColumnHeaders}" ShowGroupPanel="{TemplateBinding ShowGroupPanel}" Telerik:StyleManager.Theme="{StaticResource DataGridTheme}"/> 
                            <TelerikGridView:GridViewLoadingIndicator x:Name="PART_GridViewLoadingIndicator" Visibility="Collapsed" Telerik:StyleManager.Theme="{StaticResource DataGridTheme}"/> 
                        </Grid> 
                    </Border>
                </ControlTemplate> 
            </Setter.Value> 
        </Setter> 
</Style> 

What am I missing or doing wrong?

Koen

1 Answer, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 18 Nov 2009, 11:26 AM
Hello Koen,

Both the templates of RadGridView and GridViewDataControl have undergone quite substantial changes for Q3. Attached I am sending you their updated counterparts. Hopefully this will be enough in resolving the issue you are having.

If not - could you please provide me with a sample app so I can be of better assistance.

Best wishes,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Koen
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Share this question
or