jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Tree grid Group Hierarchy Specification

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 7 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • dan123
    Participant

    Hi have created this example where i want to list sub groups for specific rows, the problem i am having is that there are two sub groups such as folder and folder2. In some records i don’t want to group by a certain folder lets say folder2, it seems to not work that way though.

    Example of output wanted:
    Rows
    Parent: General
    Child: File 1

    Parent: 01/22/2016
    Sub Parent: Set 1
    Child: File 2
    Child: File 3

    Parent: 02/01/2016
    Sub Parent: Set 2
    Second Sub Parent: Set 2a
    Child: File 9

    If you look at the jsfiddle, it shows that “General” has a Sub parent “Set 0”, which i don’t want “Set 0” to show only want to show “File 1” the child. In case of 02/01/2016, this has another extra folder/parent so how would i achieve that.

    Here is my jsfiddle:
    http://jsfiddle.net/sznLP/133/


    Hristo
    Participant

    Hello dan123,

    You use grouping feature.
    If you want to look at the described way I would like to suggest you use “keyDataField” and “parentDataField” hierarchy.
    The place that is a parent you could set empty values for the other columns and only in the ‘Name’ column add file name (# ‘FILE 1’)

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.