This is a migrated thread and some comments may be shown as answers.

Do I understand correctly? Treeview header detail setup difficulties.

7 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 30 May 2014, 08:11 PM
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?)

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jun 2014, 03:19 AM
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.
0
Boris
Top achievements
Rank 1
answered on 03 Jun 2014, 06:48 PM
Why is the Properties tab blank for the RadTreeList?  Is this normal?

0
Shinu
Top achievements
Rank 2
answered on 04 Jun 2014, 10:45 AM
Hi Boris,

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

Thanks,
Shinu.
0
Boris
Top achievements
Rank 1
answered on 04 Jun 2014, 12:32 PM
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.)
0
Boris
Top achievements
Rank 1
answered on 05 Jun 2014, 12:40 PM
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.)
0
Accepted
Angel Petrov
Telerik team
answered on 09 Jun 2014, 08:09 AM
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.

 
0
Boris
Top achievements
Rank 1
answered on 10 Jun 2014, 04:32 PM
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.
Tags
TreeView
Asked by
Boris
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Boris
Top achievements
Rank 1
Angel Petrov
Telerik team
Share this question
or