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

RadPane with ContentUrl causes page to load twice

3 Answers 158 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 01 Feb 2008, 12:23 AM
I am using a simple RadSplitter that shows a tree on the left, and a URL in the pane on the right. I just noticed that the page in the right pane is actually loaded twice (the Page_Load breakpoint is hit twice) every time the main page loads.

Why does the RadSplitter load panes using ContentUrl TWICE? And how do I make it load only once?

<telerik:RadSplitter id="RadSplitter1" runat="server">

<telerik:RadPane id="kv_left" runat="server" Width="200px" Height="400px">
<div>
This is a test<br />
This is a test<br />
</div>
</telerik:RadPane>

<telerik:RadSplitBar id="RadSplitbar1" runat="server" collapsemode="Forward"></telerik:RadSplitBar>

<telerik:RadPane ContentUrl="test.aspx" id="kv_right" runat="server"></telerik:RadPane>

</telerik:RadSplitter>

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 04 Feb 2008, 08:33 AM
Hello Jay,
I created a simple test page based on the information you have provided, but could not reproduce the problem you describe. I do recall that there was a bug in the splitter that led to this behavior with the first version of the Prometheus RadSplitter, but it was fixed.

Could you please make sure that you are using the latest version of the Prometheus suite, namely version 2007.3.1314.20? In case the problem persists, please prepare and send us a running project, that demonstrates the problem.

Best wishes,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jay
Top achievements
Rank 1
answered on 04 Feb 2008, 09:54 PM
I upgraded to the most recent version but still have the problem. How do I upload a ZIP file? Or can you just look at the simple .ASPX pages ... here is the "main" page w/ splitter control:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="left.aspx.cs" Inherits="left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<telerik:RadSplitter id="RadSplitter1" runat="server">

<telerik:RadPane id="kv_left" runat="server" Width="200px" Height="400px">
<div>
This is a test<br />
</div>
</telerik:RadPane>

<telerik:RadSplitBar id="RadSplitbar1" runat="server" collapsemode="Forward"></telerik:RadSplitBar>

<telerik:RadPane ContentUrl="test.aspx" id="kv_right" runat="server"></telerik:RadPane>

</telerik:RadSplitter>

</form>


</body>
</html>

Here is the page that is in the right pane (test.aspx). It's Page_Load event is hit twice each time the main page is loaded:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
</head>

<body>

<form id="form1" runat="server">

This is a test

</form>



</body>
</html>
0
Svetlina Anati
Telerik team
answered on 05 Feb 2008, 01:05 PM
Hello Jay,

To upload files, you need to open a support ticket - you cannot attach files in the forums. As for the problem itself, tried to reproduce it by using your code, but everything is working as expected and both pages are loaded only once. Please send us a project which reproduces the problem and we will check it right away.




Sincerely yours,
Svetlina
the Telerik team

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