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

[Solved] Making the node expanded/ selected after closing the popup

3 Answers 88 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chinna
Top achievements
Rank 1
Chinna asked on 28 Apr 2008, 02:18 PM
hi,
    I want to make the node selected after adding nodes from a popup.

I am using the folowing code in Ajax_Request after closing the popup.

RadTreeNode currentNode = new RadTreeNode();

currentNode = rtHierarchy.FindNodeByText(hdnNode.Value);

currentNode.Selected=true;

In the code snippet, hdnNode.Value is a hidden field, which holds the text of the node from which the  node has been added.

The problem i am facing is after closing the popup the added nodes are not displayed. The nodes are displayed only after when i click on some other node.

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 01 May 2008, 07:54 AM
Hello Chinna,

Probably you have not specified that the RadTreeView should be updated by the RadAjaxManager on the page. Try adding the following setting to the RadAjaxManager:

                <rad:AjaxSetting AjaxControlID="RadAjaxManagerID"
                    <UpdatedControls> 
                        <rad:AjaxUpdatedControl ControlID="RadTreeViewID" /> 
                    </UpdatedControls> 
                </rad:AjaxSetting> 

Regards,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chinna
Top achievements
Rank 1
answered on 02 May 2008, 06:03 AM
hi simon,
                I specified the tree view control should be updated by the AjaxManager of the page, but it is not working. What might be the issue.


Thanks.  
              
0
Simon
Telerik team
answered on 02 May 2008, 10:57 AM
Hi Chinna,

Since the RadAjaxManager is properly configured, this means that something else causes this behavior.

Could you open a support ticket and provide a page or a sample project where the behavior can be observed? Or if the code needed to reproduce the problem is conveniently small you could post it here instead.

Further, we will investigate the problem thoroughly and eventually provide a solution.

Thank you in advance for your cooperation.

All the best,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Chinna
Top achievements
Rank 1
Answers by
Simon
Telerik team
Chinna
Top achievements
Rank 1
Share this question
or