Hoppa till huvudinnehållet

data-binding on nested ObservableCollection

Kommentarer

2 kommentarer

  • Ryan Cooney
    Hi Peter,

     

    Have a look at the "Data Binding - Advanced" sample in the GVH SDK. It does this using templates to represent a nested tree of folders and files.

     

    --Ryan
    0
  • Permanently deleted user
    Ryan,

     

    I've looked at that code but it is geared to recursive rendering of parent/child records that all have the same list of attributes (name,type,children, etc) but my collections have totally different sets of attributes.  The parent contains information about the site location, the child records contain information about related documents.

     

    It looks like I would need at least the template selector field to be common to both parent and child in order for it to pick the right template.

     

    Any ideas on whether it could be made to work for this type of parent / child model or will it only work for recursive records with the same model?

     

    Peter.
    0

Du måste logga in om du vill lämna en kommentar.