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

Client-side expand after postback shows nothing

2 Answers 49 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jason Reis
Top achievements
Rank 1
Jason Reis asked on 04 Dec 2009, 03:24 PM
After a postback, I expand the splitter to show the top pane and it's blank.  I inspected the markup and see that the width and height of the top pane are 0px.  This only seems to happen after a postback has occurred.  Has anyone else encountered this?

2 Answers, 1 is accepted

Sort by
0
Jason Reis
Top achievements
Rank 1
answered on 04 Dec 2009, 03:55 PM
I created a sample page to demonstrate my issue.

<%@ Page Language="vb" AutoEventWireup="false" %> 
 
<!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 runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
        <script type="text/javascript"
            function showTopPane() { 
                var splitter = $find('<%= Splitter1.ClientID %>'); 
                splitter.getStartPane().expand(); 
                return false; 
            } 
        </script> 
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <asp:Button ID="ShowTopPane" runat="server" OnClientClick="return showTopPane();" Text="Show"/> 
        <TelerikControls:RadSplitter ID="Splitter1" runat="server" Orientation="Horizontal" Width="100%" Height="500"
            <TelerikControls:RadPane ID="TopPane" runat="server" Height="200" Collapsed="true" Width="100%"
                <p>foo</p> 
            </TelerikControls:RadPane> 
            <TelerikControls:RadSplitBar CollapseMode="Forward"/> 
            <TelerikControls:RadPane Width="100%" Height="100%"></TelerikControls:RadPane> 
        </TelerikControls:RadSplitter> 
        <asp:Button ID="SubmitButton" runat="server" Text="Submit" /> 
    </form> 
</body> 
</html> 
 

0
Jason Reis
Top achievements
Rank 1
answered on 04 Dec 2009, 07:01 PM
This looks like something you've already fixed.  We're using version 2008.2.723.20.  I upgraded to version 2009.3.1103.20 and it works like I would hope.
Tags
Splitter
Asked by
Jason Reis
Top achievements
Rank 1
Answers by
Jason Reis
Top achievements
Rank 1
Share this question
or