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

Design time data not working for gridview

2 Answers 173 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jackey
Top achievements
Rank 1
Jackey asked on 21 Dec 2014, 06:49 AM
Hi team,

I have following codes
<telerik:RadGridView x:Name="HistoryData" GroupRenderMode="Flat"
                             GridLinesVisibility="Vertical"
                             ColumnWidth="50"
                             CanUserFreezeColumns="False"
                             AutoGenerateColumns="False"
                             AutoExpandGroups="True"
                             IsFilteringAllowed="True"
                             ShowGroupPanel="False"
                             RowIndicatorVisibility="Collapsed"
                             d:DataContext="{d:DesignData Source=../SampleData/SampleData.xaml}"
                             >

The sample data and the corresponding types are all ready. 
But I see no data in the design time window of grid view. 
Anything I am missing?

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 22 Dec 2014, 09:53 AM
Hello,

You say you do not see any data in design view. Do you have the data populated fine as you start the solution? Would you also please try the same with MS DataGrid or any other ItemsControl? What result do you observe?

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jackey
Top achievements
Rank 1
answered on 24 Dec 2014, 06:41 AM
Hi Dimitrina,

Thanks for your reply. It's my bad that I forgot to add ItemsSource = {Binding}. After this property is set, I could see the data at the design time. Thanks all the same.
Tags
GridView
Asked by
Jackey
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jackey
Top achievements
Rank 1
Share this question
or