collapseGroup function not work

3 posts, 1 answers
  1. Kiman
    Kiman avatar
    5 posts
    Member since:
    Jan 2016

    Posted 13 Dec 2017 Link to this post

    Hi, my kendo version is 2017.3.1026, chrome version is  63.0.3239.84

    I found that collapseGroup is not work ,

    dojo example:

    you can see that only first row has been collapse....

    but I want it collapse all rows, is this a bug?

  2. Answer
    Viktor Tachev
    Viktor Tachev avatar
    2469 posts

    Posted 14 Dec 2017 Link to this post

    Hello Kiman,

    In order to collapse the groups you would need to iterate through them and call collapseGroup for each one. The jQuery each() method is suitable for this. Furthermore, I suggest adding the logic in the Grid dataBound event. This would ensure that the code is executed after the data has been retrieved. The modified example below illustrates the functionality.

    Give the sample a try and let me know how it works for you.

    Viktor Tachev
    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.
  3. Kiman
    Kiman avatar
    5 posts
    Member since:
    Jan 2016

    Posted 14 Dec 2017 in reply to Viktor Tachev Link to this post

    Hi , thanks for reply, it works!

    sorry I was looked API document but didn't notice that this function is work at "specified group",

    so multi result selector only collapse first group, of course, ha ha...

Back to Top