Which control - GridView or TreeListView

3 posts, 0 answers
  1. Simon Woods
    Simon Woods avatar
    12 posts
    Member since:
    Dec 2009

    Posted 09 Mar 2012 Link to this post

    Hi

    I am new to the telerik wpf controls and because I am am unsure of their capabilities, I don't know which one to select. I've been considering  the radgridview in "hierachical mode" but now I'm not sure whether this is the correct control to use or perhaps the TreeListView.

    My use case is as follows:
    I have some hierarchical data as follows

    Subject A  Name  Address  DoB etc
       HospitalVisit1  VisitDate  SeenBy etc etc
          Treatment1 Location Drug  etc etc
          Treatment2 Location Drug  etc etc 
          Treatment3 Location Drug  etc etc 
       HospitalVisit2  VisitDate  SeenBy etc etc
          Treatment1 Location Drug etc etc
          Treatment2 Location Drug etc etc 

    Subject B  Name  Address  DoB etc
       HospitalVisit1  VisitDate  SeenBy etc etc
          Treatment1 Location Drug etc etc
          Treatment2 Location Drug etc etc 

    I need to display the above. Then I going to provide the UI to flatten this data into 1 row per subject. To do this, I think I need to add a boolean columns to permit the user to choose which of the child events they want to use in the flattening mechanism. eg for Subject A

    X    Subject A  Name  Address  DoB etc
            HospitalVisit1  VisitDate  SeenBy etc etc
               Treatment1 Location Drug  etc etc
               Treatment2 Location Drug  etc etc 
               Treatment3 Location Drug  etc etc 
    X      HospitalVisit2  VisitDate  SeenBy etc etc
    X         Treatment1 Location Drug etc etc
               Treatment2 Location Drug etc etc  

    The rows marked X will then be used to create a flat structure eg

    Subject A  Name  Address  DoB HospitalVisit2  VisitDate  SeenBy  Treatment1 Location Drug etc etc 

    I'd be grateful if someone could suggest which control would best suit my purposes. I'd assumed the radgridview or the treelistview but perhaps there may be other ways of doing this which may be better

    Many thx

    Simon



  2. Simon Woods
    Simon Woods avatar
    12 posts
    Member since:
    Dec 2009

    Posted 09 Mar 2012 Link to this post

    I should also add that I may need to specify which columns should be included/excluded  as well 
  3. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Mar 2012 Link to this post

    Hi Simon,

    According to the posted structure you have heterogeneous data - in this case you can use RadGridView only.
     
    All the best,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top