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

Update Parent Row using child node details

1 Answer 78 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Sharada
Top achievements
Rank 1
Sharada asked on 22 Dec 2010, 02:38 PM
Hi

I am using TreeListView control and loading child rows on demand.

I want to update the parent node again once child nodes will gets displayed.

In RadTreeListView1_RowLoaded event I am binding details of Child nodes.

Is there any other event after RadTreeListView1_RowLoaded where I can access the Parent nodes and update the cells ?

Actually I want to implemets below functionality
Director's Hours will get distributed in SubDirector A and SubDirector B
Further Subdirector's Hours can be distributed in Managers
Here only Manager's Hours can be editable.

If hours of any Manager gets updated I want to update the Hours of their Parent Rows

      Hours
Director 100
  SubDirector A 40
  Manager A1 10
  Manager A2 30
  SubDirector B 60
  Manager B1  25
    Manager B2 35

Is there any better approach I can achive this ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Dec 2010, 07:58 AM
Hello,

 It will be better if you do this directly in your data model - set desired values for related records when a specific property is changed. 

Regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
TreeListView
Asked by
Sharada
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or