Do I understand correctly? Treeview header detail setup difficulties.

8 posts, 1 answers
  1. Boris
    Boris avatar
    275 posts
    Member since:
    Oct 2012

    Posted 30 May 2014 Link to this post

    I've not used RadTreeView before.  I have a pair of header detail tables that I want to preset using a treeview.

    If I understand what I'm reading, there is no simple built-in way to do this.  
    Is this true?

    (Do I have to bind the header records to nodes first and then programmatically add the details to each header note?)
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Jun 2014 in reply to Boris Link to this post

    Hi Boris,

    In order to achieve your scenario you can use RadTreeList control. Telerik RadTreeList is a hybrid control combining treeview and grid in one. Please have a look into this online demo.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Boris
    Boris avatar
    275 posts
    Member since:
    Oct 2012

    Posted 03 Jun 2014 in reply to Shinu Link to this post

    Why is the Properties tab blank for the RadTreeList?  Is this normal?

  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Jun 2014 in reply to Boris Link to this post

    Hi Boris,

    Unfortunately i didn't understand your doubt the RadTreeList in the above post. Can you please elaborate your requirement.

    Thanks,
    Shinu.
  6. Boris
    Boris avatar
    275 posts
    Member since:
    Oct 2012

    Posted 04 Jun 2014 in reply to Shinu Link to this post

    First of all when I put a RadTreeList on my form and select it, the properties list is blank.  It doesn't seem to have any properties. This just doesn't seem normal.  Could there be something wrong with my Visual Studio Setup, or have I missed something in the documentation?

    My requirements are fairly simple.  This is a fairly standard header-detail table relationship.  My application data is handled by Linq and usually when I populate a control I use an IQueryable return object.   In this case the data binding is for display only.  I intend to process the input server side on submit due to the logic involved.  The display is to be identical for both header and details; a label and two check boxes.  (The header will have two key fields, the details three.)
  7. Boris
    Boris avatar
    275 posts
    Member since:
    Oct 2012

    Posted 05 Jun 2014 in reply to Shinu Link to this post

    Let me elaborate a bit more.  I admit that I rarely use tree-type controls in my work.  If I may ignore the back end for a moment, what I need is a tree structure that displays a label and two check boxes in both the root elements and the children.  I want to be able to populate it once and then expand and contract the notes without post back and without losing whatever changes I might have made to the check boxes.  

    (I finally managed to get a RadTreeList working but it has serious drawbacks.  So far as I know, I can't expand/collapse notes without losing my input.  I suppose I could lock all nodes open but that's a last resort.)
  8. Answer
    Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 09 Jun 2014 Link to this post

    Hi Boris,

    Following the scenario I have assembled a sample website that illustrates how to create a tree list with text and two check boxes per row. Please examine its implementation and let us know if you have any questions regarding it.

    Additionally note that the control in the provided example is bound on the server in the NeedDataSource event. That said you can use LINQ queries to get the data and later set it as a data source for the control(which seems to be a requirement).

    As for loosing the input in the control when a node is expanded I have to say that your observations are correct. In the current implementation the is no client load mode which to expand the items on the client. For now in order to avoid this problem you can store the values which the user entered in the data source of the control thus persisting the across postbacks.

    Regards,
    Angel Petrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Boris
    Boris avatar
    275 posts
    Member since:
    Oct 2012

    Posted 10 Jun 2014 in reply to Angel Petrov Link to this post

    Thanks for your effort but since there is no 'client load' option, I decided to go for a simpler design.

    What I've done is implement the tree with all nodes expanded and in Edit mode, and the +/- buttons hidden.  Not as pretty as I had hoped but it does the job for now.  If anyone's interested, I'll post the details.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017