collapseRow for Grid group rows

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    May 2016

    Posted 07 Dec 2017 Link to this post

    Hi, 

    I'm working on collapse/expand functionality that can be applied to all of the grids across our application. I noticed a quirk of one 'expandRow' and 'collapseRow' functions offered with the Kendo grid. These functions can both expand and collapse groupings in the grid; however, the 'expandGroup' and 'collapseGroup' functions work only for groupings, but not for rows.

    Do the functions that are group specific offer extra functionality over the row expand and collapse functions that makes the expand and collapse functionality different for groups in some cases? If so, what are these cases so I can know for the future?

     

    Thanks,

     

    Kevin

  2. Stefan
    Admin
    Stefan avatar
    2475 posts

    Posted 11 Dec 2017 Link to this post

    Hello, Kevin,

    The expandRow and collapseRow methods are used to expand and collapse master rows in a hierarchical(detailed) Grids:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-expandRow

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-collapseRow

    The expandGoup and the collapseGorup method are for expanding and collapsing groups in a grouped Grid:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-expandRow

    https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-collapseGroup

    The respective method should be used only for the intended scenario. 

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top