jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Tree Grid defining first level elements

This topic contains 2 replies, has 2 voices, and was last updated by  Klaus H 11 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Tree Grid defining first level elements #49770

    Klaus H
    Participant

    Hi,

    my first steps with a tree grid have all been with JSON data. To define an element that shows up as a parent element with no own parent element (a root element so to say) you have set the value of the ReportsTo to null in your JSON Data example. That works for me as well, when I use JSON data.

    I then looked into the csv example, and there was a value (143) assigned to the column ParentEmployeeKey for the persons who showed up as first level elements.

    So do any elements with a value for the parentDataField that does not exist in another data set’s keyDataField show up as first level elements, or is there any configuration, that I am not aware of?

    Kind regards
    Klaus

    Tree Grid defining first level elements #49772

    Peter Stoev
    Keymaster

    Hi Klaus,

    It does not matter whether the parent is null or non existing. If a parent of current record does not exist, then the record is a Root.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Tree Grid defining first level elements #49775

    Klaus H
    Participant

    Hello Peter,

    thank you for the confirmation. 🙂

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

You must be logged in to reply to this topic.