Splitter height size stop working after updating

2 posts, 0 answers
  1. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 20 May 2008 Link to this post

    Hi, after updating to the lasted revision (Q1 2008 SP1), my splitter bar stop fonctionning correctly. I have a splitter bar in the master page and the content page ar in  one of the RadPane. The content change in height with ajax call (clik on item in a grid update a panel with description and images). All work good before updating to SP1. Any suggestion?

    Here ma master page:
    <%@ Master Language="VB" CodeFile="Site.master.vb" Inherits="Site_Site" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <!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" style="height:100%;margin:0px">  
        <title>Baultar Inc.</title> 
        <asp:ContentPlaceHolder id="head" runat="server">  
        </asp:ContentPlaceHolder> 
          
        <link href="/CSS/Gen.css" rel="stylesheet" type="text/css" /> 
        <link href="/CSS/Master/Master.css" rel="stylesheet" type="text/css" /> 
        <link href="/CSS/MenuMain/Menu.Baultar.css" rel="stylesheet" type="text/css" /> 
        <link href="/CSS/Menu2/Menu.BOffice2007.css" rel="stylesheet" type="text/css" /> 
    </head> 
    <body style="height:100%;margin:0px">  
        <form id="form1" runat="server">  
        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
        <script type="text/javascript">  
                  
                function OnClientItemClickedHandler(sender, eventArgs)  
                {  
                    if(eventArgs.get_item().get_value() == "Connecter")  
                    {  
                        var oWindow = radopen (null, "SeConnecter");  
                    }     
                      
                    if(eventArgs.get_item().get_value()  == "Deconnecter")  
                    {  
                        Sys.Services.AuthenticationService.set_defaultLogoutCompletedCallback(OnLogoutCompleted);  
                        Sys.Services.AuthenticationService.set_defaultFailedCallback(OnFailed);  
                        Sys.Services.AuthenticationService.logout(null, null, null, null);   
                    }  
                    if(eventArgs.get_item().get_value() == "MonCompte")  
                    {  
                        var oWindow2 = radopen (null, "MonCompte");  
                    }  
                      
                    if(eventArgs.get_item().get_value() == "ChangePassword")  
                    {  
                        var oWindow3 = radopen (null, "ChangePassword");  
                    }                                                                                        
                    if(eventArgs.get_item().get_value() == "CreeCompte")  
                    {  
                        var oWindow4 = radopen (null, "CreeCompte");  
                    }                              
                }  
                  
                function OnFailed(error, userContext, methodName)  
                {  
                    //Pour le logout client side  
                }             
     
                function OnLogoutCompleted(result)   
                {  
                    // Pour le logout client side  
                }    
                  
                function WindCallBackFunction(radWindow, returnValue)  
                {  
                    if(returnValue == "Perdu")  
                    {  
                        var oWindow = radopen (null, "LostPassword");  
                    }  
                    if(returnValue == "Login")  
                    {  
                        var oWindow2 = radopen (null, "SeConnecter");  
                    }                  
                    if(returnValue == "Logged")  
                    {  
                        windowwindow.location.href=window.location.href;  
                    }                                  
                }  
                  
                function AutoSizePane()      
                {       
                    var splitter = $find("<%= RadSplitter1.ClientID %>");   
                    var pane = splitter.getPaneById("<%= RadPane2.ClientID %>");   
                }  
        </script>      
        </telerik:RadScriptBlock> 
          
          
        <div> 
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager> 
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px">  
                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px;" /> 
            </telerik:RadAjaxLoadingPanel> 
              
            <telerik:RadWindowManager ID="RadWindowManager1" ReloadOnShow="true" ClientCallBackFunction="WindCallBackFunction" runat="server">  
                <Windows> 
                    <telerik:RadWindow ID="SeConnecter"                                
                    Runat="server" 
                    Top="50"              
                    IconUrl="/Usagers/Images/Compte.gif" 
                    Modal="true"   
                    Behaviors="Close" 
                    Height="300px" 
                    Width="300px" 
                    NavigateUrl="/Site/Usagers/Login.aspx">  
                    </telerik:RadWindow> 
                      
                    <telerik:RadWindow ID="LostPassword"                                
                    Runat="server" 
                    Top="50"              
                    IconUrl="/Usagers/Images/Compte.gif" 
                    Modal="true" 
                    Behaviors="Close"   
                    Height="190px" 
                    Width="345px" 
                    NavigateUrl="/Site/Usagers/LostPassword.aspx">  
                    </telerik:RadWindow> 
                      
                    <telerik:RadWindow ID="CreeCompte"                                
                    Runat="server" 
                    IconUrl="/Usagers/Images/Compte.gif" 
                    Top="50" 
                    Modal="true" 
                    Behaviors="Close"   
                    Height="620px" 
                    Width="500px" 
                    NavigateUrl="/Site/Usagers/NewUser.aspx">  
                    </telerik:RadWindow> 
                      
                   <telerik:RadWindow ID="MonCompte"                                
                    Runat="server" 
                    Top="50"              
                    IconUrl="/Usagers/Images/Compte.gif" 
                    Modal="true" 
                    Behaviors="Close"   
                    Height="590px" 
                    Width="420px" 
                    NavigateUrl="/Site/Usagers/MyAccount.aspx">  
                    </telerik:RadWindow> 
                      
                    <telerik:RadWindow ID="ChangePassword"                                
                    Runat="server" 
                    Top="50"              
                    IconUrl="/Usagers/Images/Compte.gif" 
                    Modal="true" 
                    Behaviors="Close" 
                    Height="200px" 
                    Width="450px" 
                    NavigateUrl="/Site/Usagers/ChangePassword.aspx">  
                    </telerik:RadWindow>                  
                </Windows> 
            </telerik:RadWindowManager> 
          
     
                <table style="width: 100%" cellpadding="0px" cellspacing="0px">  
                <tr> 
                    <td>&nbsp;</td> 
                    <td style="width: 1000px">  
                      <table width="1000px"  border="0" cellpadding="0" cellspacing="0"  class="BG_MenuHeader">  
                        <tr> 
                          <td style="height:116px" align="left" valign="top">  
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                              <tr> 
                                <td style="width:140px;height:59px;"  align="left" valign="top">&nbsp;</td> 
                                <td style="width:705px;height:59px;"  align="left" valign="top">&nbsp;</td> 
                                <td style="Width:111px" align="left" valign="top">  
                                    <telerik:RadMenu ID="RadMenuDroite" Flow="Vertical" EnableEmbeddedSkins="false" Skin="Baultar" runat="server" CausesValidation="False">  
                                        <Items> 
                                            <telerik:RadMenuItem Height="23px" ImageUrl="Images/Menu/Francais.gif" HoveredImageUrl="Images/Menu/Francais_over.gif" ClickedImageUrl="Images/Menu/Francais_sel.gif" runat="server" /> 
                                            <telerik:RadMenuItem Height="23px" ImageUrl="Images/Menu/English.gif" HoveredImageUrl="Images/Menu/English_over.gif" ClickedImageUrl="Images/Menu/English_sel.gif" runat="server" /> 
                                            <telerik:RadMenuItem Height="23px" ImageUrl="Images/Menu/Bar2.gif" Enabled="False" runat="server"/>                                    
                                            <telerik:RadMenuItem ImageUrl="Images/Menu/ContactNous.gif" HoveredImageUrl="Images/Menu/ContactNous_over.gif" ClickedImageUrl="Images/Menu/ContactNous_sel.gif" runat="server" />                                    
                                        </Items> 
                                    </telerik:RadMenu> 
                                </td> 
                                <td>&nbsp</td> 
                              </tr> 
     
                              <tr> 
                                <td style="height:33px">&nbsp;</td> 
                                <td style="height:33px" colspan="2" align="left" valign="top">  
                                    </td> 
                              </tr> 
                              <tr> 
                                <td style="width:145px">&nbsp;</td> 
                                <td colspan="2">  
                                    <telerik:RadMenu ID="RadMenuAccueil" OnClientItemClicked="OnClientItemClickedHandler" EnableEmbeddedSkins="false" skin="BOffice2007" runat="server" CausesValidation="False">  
                                        <Items> 
                                            <telerik:RadMenuItem Width="78px" ImageUrl="Images/Menu/Accueil.gif" HoveredImageUrl="Images/Menu/Accueil_over.gif" ClickedImageUrl="Images/Menu/Accueil_sel.gif" runat="server">  
                                                <GroupSettings OffsetX="1" /> 
                                            </telerik:RadMenuItem>                                          
                                        </Items> 
                                    </telerik:RadMenu> 
                                    <telerik:RadMenu ID="RadMenuEntreprise" OnClientItemClicked="OnClientItemClickedHandler" EnableEmbeddedSkins="false" skin="BOffice2007" runat="server" CausesValidation="False">  
                                        <Items> 
                                            <telerik:RadMenuItem Width="95px" ImageUrl="Images/Menu/Entreprise.gif" HoveredImageUrl="Images/Menu/Entreprise_over.gif" ClickedImageUrl="Images/Menu/Entreprise_sel.gif" runat="server">  
                                            </telerik:RadMenuItem>                                         
                                        </Items> 
                                    </telerik:RadMenu>      
                                    <telerik:RadMenu ID="RadMenuReaSol" OnClientItemClicked="OnClientItemClickedHandler" EnableEmbeddedSkins="false" skin="BOffice2007" runat="server" CausesValidation="False">  
                                        <Items> 
                                            <telerik:RadMenuItem Width="106px" ImageUrl="Images/Menu/Realisations.gif" HoveredImageUrl="Images/Menu/Realisations_over.gif" ClickedImageUrl="Images/Menu/Realisations_sel.gif" runat="server">  
                                            </telerik:RadMenuItem> 
                                            <telerik:RadMenuItem Width="91px" ImageUrl="Images/Menu/Solutions.gif" HoveredImageUrl="Images/Menu/Solutions_over.gif" ClickedImageUrl="Images/Menu/Solutions_sel.gif" runat="server">  
                                            </telerik:RadMenuItem> 
                                        </Items> 
                                    </telerik:RadMenu>     
                                    <telerik:RadMenu ID="RadMenuMain" OnClientItemClicked="OnClientItemClickedHandler" EnableEmbeddedSkins="false" skin="Baultar" runat="server" CausesValidation="False">  
                                        <Items> 
                                            <telerik:RadMenuItem Width="79px" ImageUrl="Images/Menu/Intranet.gif" HoveredImageUrl="Images/Menu/Intranet_over.gif" ClickedImageUrl="Images/Menu/Intranet_sel.gif" runat="server">  
                                            </telerik:RadMenuItem> 
                                            <telerik:RadMenuItem Width="256px" ImageUrl="Images/Menu/Bar.gif" runat="server">  
                                            </telerik:RadMenuItem> 
                                            <telerik:RadMenuItem Width="110px" ImageUrl="Images/Menu/Connecter.gif" HoveredImageUrl="Images/Menu/Connecter_over.gif" ClickedImageUrl="Images/Menu/Connecter_sel.gif" runat="server">  
                                            </telerik:RadMenuItem>   
                                        </Items> 
                                    </telerik:RadMenu>                                     
                                </td> 
                              </tr> 
                            </table> 
                          </td> 
                        </tr>   
                      </table> 
                       
                            <telerik:RadSplitter ID="RadSplitter1" Skin="Web20" Height="100%" Width="960px" Orientation="Horizontal" OnClientLoaded="AutoSizePane" runat="server">  
                                <telerik:RadPane ID="RadPane1" runat="server" MinHeight="90" MaxHeight="90" Height="90px">  
                                    Module  
                                </telerik:RadPane> 
                                <telerik:RadSplitBar ID="RadSplitBar1" CollapseMode="Forward" runat="server" /> 
                                <telerik:RadPane ID="RadPane2" Height="100%" runat="server">  
                                    <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"></asp:ContentPlaceHolder> 
                                </telerik:RadPane> 
                            </telerik:RadSplitter> 
                    </td>   
                    <td>&nbsp;</td> 
                </tr> 
             </table> 
        </div> 
        </form> 
    </body> 
    </html> 
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 22 May 2008 Link to this post

    Hello Pierre,

    I examined your code but I was not able to find the code which resizes the RadPane. You have a function called AutoSizePane() but it does not resize it, it just obtains a reference to the RadSplitter and to the RadPane.

    Would you please clarify how exactly you resize the RadPane and add code if it is missing?

    Kind regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top