Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
tree-grid vs hierarchical grid
posted

if you can point to article or describe in short paragraph what is the major difference between tree-grid and h-grid. What one has that another does not.  Seems like both support hierarchical data structure representation.. I am starting project presenting hierarchical data where child records for different parents will have several data structures types.. wonder which one would fit better.

Thanks

Parents Reply
  • 1560
    Verified Answer
    Offline posted in reply to Michael Seidel

    Hello,


    I have been looking into your question and found
    this topic in our documentation where is demonstrated how to configure Load on Demand by creating a Remote Service Provider that communicates with an already available remote oData v4 Service. The provided sample is using the Customers data from services.odata.org/.../ for root level and Order and Order_Details for the lower levels. After you get the data and could access it, you could create an igx-row-island for each child table using their keys. A step by step description of the process of creating it as well as sample demo could be found in the provided topic.


    Regarding your second question about "parent records that do not have child, records won't have expanded/collapse indicator. " I can suggest using the onRowToggle event, which fires every time a row is collapsed or expanded. A method could be bound to the event, where by the rowID it is determined whether this row has children or not, and if there are no children the event is being canceled. In order the event to fire for child rows except of the grid tag, the onRowToggle should also be placed in all row-islands.  Also, you could re-template the igxRowCollapsedIndicator and hide it if the row has no children.


    Here could be found a sample application that demonstrates this approach.


    Additionally, please keep in mind that according to our policy we handle an issue per case, and since this theme is regarding differences between Tree Grid and Hierarchical Grid, my suggestion is to create another forum thread with your new question. This is for better consistency and history tracking.


    If you require any further assistance on the matter, please let me know.


    Sincerely,
    Teodosia Hristodorova
    Associate Software Developer

Children