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

Issue with conditional expand row grid in kendo-react

1 Answer 1243 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tisson
Top achievements
Rank 1
Veteran
Tisson asked on 09 Sep 2020, 07:14 AM
I am facing issue with conditional expanded row for kendo-react grid. I am implementing the kendo-react grid which will be having some records on which some records will be having sub grid and some of them will not be having sub grid. Is there any way to achieve this scenario where we can have condition to restrict row expand based on records data in single grid. 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 09 Sep 2020, 10:41 AM

Hello, Tisson,

We have two options in this case:

1) On the onExpandChange event make the necessary checks and only expanded if it passed. The downside of this approach is that the expand icon will still be rendered.

2) We can use a custom expand/collapse column and only render the expand icon for the row that can be expanded:

https://www.telerik.com/kendo-react-ui/knowledge-base/custom-expand-collapse-column/

Please let me know if you need additional information on these matters.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Tisson
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Share this question
or