RadGridView doesn't display items

6 posts, 0 answers
  1. ChepA
    ChepA avatar
    10 posts
    Member since:
    Jan 2014

    Posted 15 Jan 2014 Link to this post

    Hi,

    I'm evaluating the telerik controls for silverlight. In my current test project, i'm using multitheme-dynamic XAP-docking-mvvm application that i'm binding an observablecollection on gridview itemsource but it doesn't appears, the form is still blank. Than i put an default silverlight DataGridView, binding the same way and it works.

    I created a new simple silverlight project and even that, it still doesn't works. Here is the code for that simple test:
    XAML
     <Grid x:Name="LayoutRoot">
            <telerik:RadGridView x:Name="RadGridView1" AutoGenerateColumns="True"></telerik:RadGridView>
        </Grid>

    XAML.cs

     public partial class MainPage : UserControl
        {
            public MainPage()
            {
                InitializeComponent();
                ObservableCollection<ContactModel> contactList = new ObservableCollection<ContactModel>();
                contactList.Add(new ContactModel() { FirstName = "ddddd", LastName = "ttttt", PhoneNumber = "11111111", Id = 1 });
                contactList.Add(new ContactModel() { FirstName = "rrrrrrr", LastName = "ddddddd", PhoneNumber = "55555555", Id = 2 });
                contactList.Add(new ContactModel() { FirstName = "yyyyyy", LastName = "hhhhhh", PhoneNumber = "777777", Id = 3 });

                RadGridView1.ItemsSource = contactList;
            }
        }

        public class ContactModel
        {

            public int Id { get; set; }
            public string FirstName { get; set; }
            public string LastName { get; set; }
            public string PhoneNumber { get; set; }
        }

    Anyone can help me?

    *sorry for may bad english.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 16 Jan 2014 Link to this post

    Hello,

    May I ask you to confirm if you have referenced the full or the NoXaml binaries?
    You can find more information on what the difference between both the options is here.

    You have opened two threads on the same topic. May I ask you to keep the further conversation in this one only?

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. ChepA
    ChepA avatar
    10 posts
    Member since:
    Jan 2014

    Posted 16 Jan 2014 Link to this post

    Hi.
    I didn't know witch i was referenced, so i tested with full binaries and it works, NoXaml binaries didn't works.
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 16 Jan 2014 Link to this post

    Hello,

    Please make sure you have done all the needed steps to apply the NoXaml binaries.

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. ChepA
    ChepA avatar
    10 posts
    Member since:
    Jan 2014

    Posted 16 Jan 2014 Link to this post

    Sorry, i don't know what is the all needed steps to apply the NoXaml binaries. Where can i find these steps?
  7. Vera
    Admin
    Vera avatar
    263 posts

    Posted 17 Jan 2014 Link to this post

    Hi Tiago,

    You have probably missed to merge the needed XAML files in the app file.  Please check Setting a theme using Implicit Styles article and the attached project for a reference.


    Regards,
    Vera
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner