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

Add order to load url into the panes

1 Answer 51 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
aolympio
Top achievements
Rank 1
aolympio asked on 28 Jun 2008, 05:27 PM
Hi guys!

Scenario:
I have 3 pages( Index.aspx, A.aspx and B.aspx) and  one RadSplitter (into the Index.aspx) with two RadPanes inside.

The RadPane1(Left Pane) has a property ContentURL refering to A.aspx and the RadPane2(Right Pane) has a property ContentURL refering to B.aspx.

Problem:
Passing by Page_Load() from Index.aspx, the execution follows to Page_Load() from B.aspx and then goes to Page_Load() from A.aspx.

Question:
How can I load first the A.aspx and then the B.aspx?

Thanks for help,
Anderson Olympio







1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 01 Jul 2008, 03:53 PM
Hi aolympio,

When you use the RadPane's ContentUrl property you actually create an IFRAME element and place it in the RadPane. The described order of loading is the expected one, when using IFRAMEs and you can test this by replacing the RadSplitter's structure with two IFRAMEs.

What I can suggest is to hook up the RadSplitter's OnClientLoaded handler and implement a proper client-side handler. In this handler you should reference the RadPanes by using the $find method and then set their ContentUrl in the desired order by using the RadPane's set_contentUrl method.

Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Splitter
Asked by
aolympio
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or