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.
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.