Load a group content on demand

7 posts, 0 answers
  1. Ori
    Ori avatar
    3 posts
    Member since:
    Jan 2011

    Posted 07 Feb 2013 Link to this post

    I am working with a data that it is divided into several groups. The number of groups is small however, each group contains many items.
    I would like that each group's items list is loaded on demand when the user clicks the group. 
    The purpose is not to load all data from the server but rather only when the user hits the requested group.

    Does the Grid support this functionality?
  2. Daniel
    Admin
    Daniel avatar
    2231 posts

    Posted 11 Feb 2013 Link to this post

    Hello,

    The Grid does not support loading the groups on demand. One possible way to implement this behavior is to bind the Grid to the group keys and use a detail to load the items for the group on demand.

    Regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Ori
    Ori avatar
    3 posts
    Member since:
    Jan 2011

    Posted 11 Feb 2013 Link to this post

    Thanks for the help

    Binding to the group keys and load their items on demand sound reasonable.
    However, Can I make the details pane look the same as a group pane?

    The nice thing about grouping is that the group and its items share the same column structure. When using detail pane is that possible?
  4. Daniel
    Admin
    Daniel avatar
    2231 posts

    Posted 13 Feb 2013 Link to this post

    Hello again,

    The same structure cannot be used because the detail is added in a cell of the Grid and the group rows are part of the Grid table. You could achieve similar look by using some templates and adjusting the styles. For convenience, I attached a sample project.

    Regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Ori
    Ori avatar
    3 posts
    Member since:
    Jan 2011

    Posted 13 Feb 2013 Link to this post

    Thanks very much. I really appreciate your help.
  6. Zoltán
    Zoltán avatar
    1 posts
    Member since:
    Sep 2014

    Posted 19 Nov 2019 in reply to Daniel Link to this post

    Hi!

    Do you have a solution now for this problem? I mean, other then the prior suggestion. Do you plan to implement this functionality? It's very frustrating to apply hacks instead of using a proper implementation of server grouping.

    Thanks,

    Zoltan Szirmai

  7. Tsvetomir
    Admin
    Tsvetomir avatar
    574 posts

    Posted 21 Nov 2019 Link to this post

    Hi Zoltan,

    I have noticed that this thread is a duplicate of a private Support thread of yours. I am pasting below the response provided there:

    The Grouping functionality of the Kendo UI Grid could be executed on the client-side and on the server-side. However, either of the cases, the respective items would be loaded even if the groups are collapsed. The server returns the grouped data and grouped data could not be loaded on demand. The hierarchical data could be loaded on demand. 

    The groups that are shown in the grid's content are actually simple HTML elements which are separators for the groups and indicate where one group starts and ends. 

    As an alternative, if you have a hierarchical data, I would recommend utilizing the Kendo UI TreeList widget which provides loading of its child elements on demand. An example could be found here:

    https://demos.telerik.com/kendo-ui/treelist/remote-data-binding

     

    It is recommended to avoid submitting duplicate tickets as this might end up polluting your history. Therefore, it would be more difficult for you to navigate through past tickets.

     

    Best regards,
    Tsvetomir
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top