jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • RameshGupta
    Participant

    Hello Hristo,

    We tried in the way you suggested, but we are not reaching our need.

    Since we use ‘virtualModeCreateRecords’ function implementation, ‘expandRow’ making REST call each time, in our case it will make multiple calls. Which is not required our backend call serves 9 records for “restore” case.

    The exact use case what we need to achieve is as below.

    • Parent
    o Child1
     Child1 of child1
     Child2 of child1
    o Child2
     Child1 of child2
     Child2 of child2
    o Child3
    o Child4

    Suppose we have expanded TreeGrid like above and navigated to other page, and came back to TreeGrid page, then at first only we need to show in the above expanded way.

    Response we receive from backend is all 9 records in one call. Only thing we need to do is arrange them in hierarchy order as shown above.
    In order to do that, is there any way of marking the children and sub-children using level or any other parameter?

    Please suggest to build TreeGrid in hierarchy passion.

    Regards,
    Ramesh Gupta


    RameshGupta
    Participant

    Hello Hristo,

    We tried in similar way earlier with older version, it didn’t worked as expected, we’ll try in latest version

    Regards,
    Ramesh Gupta


    RameshGupta
    Participant

    Hello Hristo,

    Thanks for the Response.

    In our application we are getting the data through REST API from backend.
    In order to expand for child nodes, we use Ajax method to get child data.
    Here we don’t have level restriction, we can have multi level child data/records.
    assume we expanded certain level say 2 and 3 of parent1 and parent2 records/rows.
    After navigating to page and come back to this JQXTreeGrid page we see only parent level rows only, but not the “previous state” of second level child from parent1 and third level child from parent2.
    Please advice the way to retain the state.

    Regards,
    Ramesh Gupta

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