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

Refresh pane from other pane

1 Answer 165 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Adam Finster
Top achievements
Rank 1
Adam Finster asked on 25 Feb 2013, 10:43 AM
Hello,

I have a basic radSplitter setup, with a "navigation" pane on the left and a "content" pane on the right, divided by a split bar. We'll call this page "Main.aspx".

In the navigation pane, I have a radTreeView control which builds up nodes in groups based on database records. Clicking on a treeview node sets the content pane's ContentURL to a specific aspx page based on the node & parameters, etc. Within this content pane, I can step the user through a wizard-type interface.

If the user edits an item in the content pane or completes the wizard, I would like to be able to refresh the TreeView control via some sort of javascript, similar to what is found at http://www.telerik.com/support/kb/aspnet-ajax/splitter/referencing-content-page-in-a-splitter-pane-from-the-parent-page-and-vice-versa.aspx  without refreshing the entire page and losing the reference to the page in the content pane. This would update the treeview with the new or changed information.

Complex as it may be, the only real solution I can think of is to refresh the entire page while holding a value in Session. After the treeview builds, it can inspect the session value, highlight the node in question, and load the content pane base on the session value.

Do you have any better ideas?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 27 Feb 2013, 04:11 PM
Hi Adam,

Indeed, the KB article that you have linked is the recommended approach to avoid full page reload. For your convenience I have prepared sample page demonstrating how to ajaxify RadTreeView from within the content page. Please find it attached.

Kind regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Splitter
Asked by
Adam Finster
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or