Skip to content

Grid: Using nested grids with nested objects #835

Answered by hianhianhian
hianhianhian asked this question in Q&A
Discussion options

You must be logged in to vote

I've resolved this question. The comment from here #784 (reply in thread) was the answer, but could be explained a bit better

For the example above, the GridDetailView should look like this:

<GridDetailView TItem="Employee" Context="employee">
        <Grid TItem="TaskInfo"
              Class="table table-hover border-top"
              DataProvider="(request) => TaskDataProvider(request, employee)">

            <GridColumns>
                <GridColumn TItem="TaskInfo" Context="task" HeaderText="Field" PropertyName="Field">
                    @task.Name
                </GridColumn>
            </GridColumns>
        </Grid>

</GridDetailView>

@code

private async Task<GridDataProvider…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prizmasoftware
Comment options

Answer selected by hianhianhian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants