This question is locked. New answers and comments are not allowed.
Hello,
I've created a Silverlight WCF RIA solution. I have DataModels and Domain Services set up. In my Silverlight application, I have a Telerik RadGridView. The grid works fine if I bind it to the context (some data pulled from a domain service). However, I cannot figure out a way to create a parent-child association between two contexts. One of the obstacles on my way is the fact that I'm generating all columns and associations programmatically (the grid is bound to different contexts with differen columns based on different query string values). Another obstacle is my total lack of knowledge of Telerik Silverlight package. I've seen demos and whole bunch of articles online, but none seemd to address anything close to what I'm trying to do.
Below is a more detailed scenario:
Let's say I have two contexts - EmployeeShort (contains only ID, Name and Email) and Employee (contains all the fields of the EmployeeShort context and also a whole bunch of other fields including Location, Phone, Fax, etc.)
I have a simple RadGridView on my Main.xaml page:
<telerik:RadGridView Name="rgvMainGrid"
AutoGenerateColumns="False"
IsReadOnly="True"/>
I generate columns and bind data programmatically.
My goal is to have the grid display all records from the EmployeeShort context (which I can easily do), but make every record "extendable" to display a corresponding Employee record with its wide range of employee specific fields (and this is what I can't figure out how to accomplish).
The GridView demo has a similar scenario - you can see a child record below a parent record displaying more data in it. However, the data fed into that grid is generated by a parent-child relationship specified in a class. In my case I have two contexts that can be joined on the ID field (as it is a unique one and shared by both).
Sample output:
(header) Name Email
(parent) Joe Doe JD@email.com
(child header) Name Email Location Phone
(child) Joe Doe JD@email.com Sometown 1(999)123-4567
(another parent) Joe Smith JS@email.com
(another parent) Jane Doe JaD@email.com
...........
I would really appeciate any ideas.
Thank you!
I've created a Silverlight WCF RIA solution. I have DataModels and Domain Services set up. In my Silverlight application, I have a Telerik RadGridView. The grid works fine if I bind it to the context (some data pulled from a domain service). However, I cannot figure out a way to create a parent-child association between two contexts. One of the obstacles on my way is the fact that I'm generating all columns and associations programmatically (the grid is bound to different contexts with differen columns based on different query string values). Another obstacle is my total lack of knowledge of Telerik Silverlight package. I've seen demos and whole bunch of articles online, but none seemd to address anything close to what I'm trying to do.
Below is a more detailed scenario:
Let's say I have two contexts - EmployeeShort (contains only ID, Name and Email) and Employee (contains all the fields of the EmployeeShort context and also a whole bunch of other fields including Location, Phone, Fax, etc.)
I have a simple RadGridView on my Main.xaml page:
<telerik:RadGridView Name="rgvMainGrid"
AutoGenerateColumns="False"
IsReadOnly="True"/>
I generate columns and bind data programmatically.
My goal is to have the grid display all records from the EmployeeShort context (which I can easily do), but make every record "extendable" to display a corresponding Employee record with its wide range of employee specific fields (and this is what I can't figure out how to accomplish).
The GridView demo has a similar scenario - you can see a child record below a parent record displaying more data in it. However, the data fed into that grid is generated by a parent-child relationship specified in a class. In my case I have two contexts that can be joined on the ID field (as it is a unique one and shared by both).
Sample output:
(header) Name Email
(parent) Joe Doe JD@email.com
(child header) Name Email Location Phone
(child) Joe Doe JD@email.com Sometown 1(999)123-4567
(another parent) Joe Smith JS@email.com
(another parent) Jane Doe JaD@email.com
...........
I would really appeciate any ideas.
Thank you!