jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Initial source and virtualModeCreateRecords

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years ago.

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

  • JonA
    Participant

    Hi!

    I’m trying to accomplish the following:

    * Load an intial tree-structure to the TreeGrid
    * When the user expandes a node that has children that hasn’t been loaded initially, I would like to use the virtualModeCreateRecords to fetch this nodes children.

    Ergo, I’m trying to combine both the initial population of the grid With dynamically loading the rest on demand.

    The problem is that if I set the Source of the TreeGrid on initialization, the virtualModeCreateRecords-function never fires…
    On the other hand, if I only use the virtualModeCreateRecords-function, (also to populate the tree initially), the tree does not respect the hierarchy of this data, and everything is added on the root-level.

    Any tips?

    Thanks!

    Regards
    Jon

    Initial source and virtualModeCreateRecords #50163

    Peter Stoev
    Keymaster

    Hi Jon,

    It is not possible to combine these. You should either always use virtualModeCreateRecords or never use it. The first call of the virtualModeCreateRecords defines the Root Level. Other calls of that method populate each Expanded Item.

    Best Regards,
    Peter Stoev

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

    Initial source and virtualModeCreateRecords #50167

    JonA
    Participant

    OK, so just to re-cap: Starting with an initial tree, then continuing With dynamically loading data when user expands nodes is not at all possible in the TreeGrid? No work-arounds that springs to mind?

    Jon


    Peter Stoev
    Keymaster

    Hi Jon,

    It is not possible to combine different data binding modes. You should either Load Records on Demand or load them at once.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.