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

Defining detail component in declarative way?

1 Answer 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Artem
Top achievements
Rank 1
Artem asked on 24 Sep 2018, 04:54 PM
Official documentation regarding Master-Detail Grids states:

"To apply a hierarchical order to the desired records, use the detail property of the master Grid".  Would it be possible to define detail component in declarative way as we do for GridNoRecords for example to pass it any props?

              <Grid
                    style={{ height: '550px' }}
                    data={this.state.categories}
                    expandField="expanded"
                    onExpandChange={this.expandChange}
                >
                    <Column field="CategoryID" title="ID" width="50px" />
                    <Column field="CategoryName" width="200px" title="Category Name" />
                    <Column field="Description" />
                    <DetailRow>
                          <DetailComponent />
                    </DetailRow>
                </Grid>


1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Sep 2018, 07:18 AM
Hello, Artem,

Thank you for the suggestion.

For now, the supported approach is the one shown in the demo.

If you think that there is a benefit of using the declarative approach in this case, please open a discussion in our public repository when this can be directly discussed with the entire team and the developer lead of the Grid:

https://github.com/telerik/kendo-react/issues

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Artem
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or