Issue with conditional expand row grid in kendo-react

2 posts, 0 answers
  1. Tisson
    Tisson avatar
    12 posts
    Member since:
    Jun 2020

    Posted 09 Sep 2020 Link to this post

    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. 
  2. Stefan
    Admin
    Stefan avatar
    3035 posts

    Posted 09 Sep 2020 Link to this post

    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/.

Back to Top