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

[Solved] Displaying child data

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill
Top achievements
Rank 2
Bill asked on 10 Nov 2011, 11:45 PM
I have a grid set where I am displaying "n" amount of projects for a specific customer.

The YeagerTech.Customer object contains a property called Projects which is of the following type:
ICollection<YeagerTechModel.Project> Customer.Projects

In the collection exist "n' number of projects for a specific customer.

The question is "how do I display the properties in the child grid associated with the Project?

I have the below, but am unsure how to display these Project properties.

.DetailView(details => details.ClientTemplate(                 
    Html.Telerik().Grid<YeagerTechModel.Customer>()                     
        .Name("Projects_<#= CustomerID #>").Columns(columns =>                     
        {                         
        columns.Bound(o => o.Projects).Width(101);                         
          // How do I display the Project properites here for the detail grid?
        })                     
        .ToHtmlString()                 
  

1 Answer, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 2
answered on 11 Nov 2011, 02:37 AM

My data is already in my Customer object and in the Project collection of my Cusomter object for the detail records.

I just don't know how I can get the properties of the Project collection to display on the grid.

Tags
Grid
Asked by
Bill
Top achievements
Rank 2
Answers by
Bill
Top achievements
Rank 2
Share this question
or