Hi,
I am a general newbie when it comes to Silverlight/Telerik. I am currently maintaining a Silvelight 4 application.
I have the following setup(using Prism, MVVM):
1) A RadGridView with a Dataform to display & edit master-detail information
2) I did this end to end and its working
3) A new requirement has come to have that DataForm to also display 2 gridviews in it
4) But the GridViews in the DataForm is not displaying any data.
5) The "SelectedItem" has two collections for these grids.
Example:
1) Suppose I have a Person, who has multiple Addresses and multiple PhoneNumbers
2) The list of people (Person collection) is displayed in the "master grid"
3) The DataForm displays
- the Person details of the selected Person
- Should show a grid for the Selected Person's Addresses <- Not working
- Should show a grid for the Selected Person's Phone Numbers <- Not working
4) What do I need to do so that it binds to the selected Person's Addresses and PhoneNumbers and displays them
public class Person
{
public Person()
{
}
public int Id { get; set; }
public string Name { get; set; }
public ICollection<Address> Addresses { get; set; }
public ICollection<PhoneNumber> PhoneNumber { get; set; }
}
public class Address
{
public Address()
{
}
public int Id { get; set; }
public string Line1 { get; set; }
public string Line2 { get; set; }
public string Line3 { get; set; }
public string Code { get; set; }
public int PersonId { get; set; }
}
public class PhoneNumber
{
public PhoneNumber()
{
}
public int Id { get; set; }
public string Number { get; set; }
public int PersonId { get; set; }
}
I am a general newbie when it comes to Silverlight/Telerik. I am currently maintaining a Silvelight 4 application.
I have the following setup(using Prism, MVVM):
1) A RadGridView with a Dataform to display & edit master-detail information
2) I did this end to end and its working
3) A new requirement has come to have that DataForm to also display 2 gridviews in it
4) But the GridViews in the DataForm is not displaying any data.
5) The "SelectedItem" has two collections for these grids.
Example:
1) Suppose I have a Person, who has multiple Addresses and multiple PhoneNumbers
2) The list of people (Person collection) is displayed in the "master grid"
3) The DataForm displays
- the Person details of the selected Person
- Should show a grid for the Selected Person's Addresses <- Not working
- Should show a grid for the Selected Person's Phone Numbers <- Not working
4) What do I need to do so that it binds to the selected Person's Addresses and PhoneNumbers and displays them
public class Person
{
public Person()
{
}
public int Id { get; set; }
public string Name { get; set; }
public ICollection<Address> Addresses { get; set; }
public ICollection<PhoneNumber> PhoneNumber { get; set; }
}
public class Address
{
public Address()
{
}
public int Id { get; set; }
public string Line1 { get; set; }
public string Line2 { get; set; }
public string Line3 { get; set; }
public string Code { get; set; }
public int PersonId { get; set; }
}
public class PhoneNumber
{
public PhoneNumber()
{
}
public int Id { get; set; }
public string Number { get; set; }
public int PersonId { get; set; }
}