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

Refreshing a Tree Node

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mateen
Top achievements
Rank 1
Mateen asked on 10 May 2011, 01:06 PM
Hi,
In my inner loop serviceProvider Object hold the reference of the tree node that i want to refresh. How can i do this.? There apparently isn't any refresh method associated with the tree node ?
I have the following code in my code behind .
foreach (RadTreeViewItem serviceProviderList in redemptionTreeView.Items)
            {
                foreach (RadTreeViewItem serviceProvider in serviceProviderList.Items)
                {
                    if (serviceProvider.Name.ToString().Contains("/" + serviceProviderID))
                    {
                        
                    }
 
                }
            }

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 13 May 2011, 08:47 AM
Hi Mateen,

What do you mean by 'refresh'? You can call the UpdateLayout() method of the RadTreeViewItem if you need to ensure that the item and its children are properly updated for layout. If this isn't what you need, can you please elaborate on your scenario a bit more? Thank you in advance.

Greetings,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Mateen
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or