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

RadGridView doesn't display items

5 Answers 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ChepA
Top achievements
Rank 1
ChepA asked on 15 Jan 2014, 01:30 PM
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.

5 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 16 Jan 2014, 06:35 AM
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 >>
0
ChepA
Top achievements
Rank 1
answered on 16 Jan 2014, 12:30 PM
Hi.
I didn't know witch i was referenced, so i tested with full binaries and it works, NoXaml binaries didn't works.
0
Dimitrina
Telerik team
answered on 16 Jan 2014, 12:37 PM
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 >>
0
ChepA
Top achievements
Rank 1
answered on 16 Jan 2014, 12:47 PM
Sorry, i don't know what is the all needed steps to apply the NoXaml binaries. Where can i find these steps?
0
Vera
Telerik team
answered on 17 Jan 2014, 08:52 AM
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 >>
Tags
GridView
Asked by
ChepA
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
ChepA
Top achievements
Rank 1
Vera
Telerik team
Share this question
or