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

Accessing controls within content pane

1 Answer 64 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Robert Frank
Top achievements
Rank 2
Robert Frank asked on 05 Dec 2011, 05:16 PM

I'm using nested RadSplitBar controls.  On the left I have a treview used for navigation and on the right is my content pane.  Whenever  a particular node on the navigation pane is click is loads a URL on my content pane via set_contentURL.  The content pane is loaded from my data source which set session vars tied to each entry object.  The problem I'm having is capturing the content from each object before the user clicks the navigation to change the url.  I would like to traverse the object from the content page and capture the entered data within and event that fired just before it sets or changes to the next content url.


Javascript that changes the content whenever the DB driven node is selected.

 

<

 

 

script type="text/javascript">

 

 

 

 

 

 

 

 

function onNodeClicked(sender, args) {

 

showDetails(args.get_node());

}

 

 

function showDetails(node) {

 

 

 

if (node.get_value()) {

 

 

 

var page = node.get_value();

 

LoadExternalContent(page,

 

'contentPane');

 

 

 

}

 

 

else {

 

$get(

 

"details").style.display = "none";

 

}

}

 

 

function LoadExternalContent(url, targetPaneID) {

 

 

 

var splitter = $find("topSplitter");

 

 

 

var pane = splitter.getPaneById(targetPaneID);

 

 

 

if (!pane) return;

 

 

 

if (url == "0") {

 

 

 

return;

 

}

 

 

else {

 

pane.set_contentUrl(url);

}

}

 

 

</script>

 

 

Here is the Content pane.

 

 

<telerik:RadPane ID="contentPane" Width="50%" Height="675" Scrolling="Y" EnableAjaxSkinRendering="true" runat="server">

 

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

 

 

 

 Any help would be greatly appreciated.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 05 Dec 2011, 05:56 PM
Hi Robert,

I believe the following KB article will be of help achieving the required result:
Referencing content page in a splitter pane from the parent page and vice versa

Greetings,
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
Robert Frank
Top achievements
Rank 2
Answers by
Dobromir
Telerik team
Share this question
or