Design time data not working for gridview

3 posts, 0 answers
  1. Jackey
    Jackey avatar
    71 posts
    Member since:
    Oct 2014

    Posted 21 Dec 2014 Link to this post

    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. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 22 Dec 2014 Link to this post

    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.

     
  3. Jackey
    Jackey avatar
    71 posts
    Member since:
    Oct 2014

    Posted 24 Dec 2014 in reply to Dimitrina Link to this post

    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.
Back to Top