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

Update one user control from another

1 Answer 92 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 19 Mar 2009, 01:05 PM
I'm trying to update a label in one user control when a node in a tree in another user control is clicked.  I've looked at the examples and threads in this forum but I still haven't been able to get anything to work.  I have a user control that has a RadSplitter in a panel.  The splitter has a user control in the left pane with a RadTreeView and a user control in the right pane with labels, text boxes, etc.  When a node is clicked in the tree view in the user control in the left pane, I want to update a label in the user control in the right pane.

I'd appreciate it if someone can point me to example code that will show me how to accomplish this.

Thanks,
Jim

1 Answer, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 19 Mar 2009, 02:05 PM
I finally got a combination to work!  In the top-level panel I have the ajax manager set to update the panel itself.  In the tree view in the right pane in the splitter in the onNodeClick event I am setting the value I want displayed in the Session.  I also have an ajax manager proxy to update the tree view from the tree view which I'm not sure is needed.  I have an event handler for the tree node clicked event that the top level page creates via the onNodeClicked event set on the user control.  I created a property in the top level control for the user control in the right pane in the splitter and also a property in that user control for the label I want to update.  In the onPageLoad method I set the value of that label property with the value from the session.

Jim
Tags
Ajax
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Share this question
or