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

Design-Time data in GridView

4 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 20 Jun 2012, 10:09 PM
Using the method of creating design-time data as shown in SLFS2010 MVVM with a designservice, it seems that the RadGridView is not able to present this data.

My design-time data consists of a observablecollection with 5 instances of a given object. The RadGridView is actually showing 5 rows, but it's not able to show the content of the object. A standard DataGrid however, displays the design time data easily.

Is this a bug, or is this just not supported? It is really a helpful way of creating views, so it should nevertheless be considered as a feature request.

XAML:
<navigation:Page xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
               x:Class="TEST.Views.Persons"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           DataContext="{Binding Persons, Source={StaticResource Locator}}"
           Title="Persons Page">
    <Grid x:Name="LayoutRoot">
    <StackPanel Orientation="Vertical">
      <telerik:RadGridView ItemsSource="{Binding Persons}" AutoGenerateColumns="True" MaxHeight="400" Width="500">
      </telerik:RadGridView>
      <sdk:DataGrid ItemsSource="{Binding Persons}" AutoGenerateColumns="True">         
      </sdk:DataGrid>
    </StackPanel> 
  </Grid>
</navigation:Page>

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Jun 2012, 05:33 AM
Hi,

 Can you post more info about the RadGridView version at your end? 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jason
Top achievements
Rank 1
answered on 21 Jun 2012, 07:53 PM
Telerik.Windows.Controls.GridView.dll
Version 2011.3.1220.1040
Runtime Version v2.0.50727
0
Accepted
Vlad
Telerik team
answered on 22 Jun 2012, 05:17 AM
Hi,

 This version is our Q3 2011 SP1. Have you tried our latest version (Q2 2012) instead?

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jason
Top achievements
Rank 1
answered on 24 Jun 2012, 08:01 PM
Updating to the latest version solved the issue.
Thanks!
Tags
GridView
Asked by
Jason
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jason
Top achievements
Rank 1
Share this question
or