Problem with CollapsiblePanelExtender

Last post 12-12-2006 2:09 PM by José Iván G. 4 replies.

Sort Posts:

  • Problem with CollapsiblePanelExtender

    08-30-2006, 6:14 AM

    I have the latest version of Atlas (July CTP) and AtlasControlToolkit
    My project is master-page with an Atlas ScriptManager component and one main page with some ascx components.
    the main page contain some Atlas UpdatePanel controls; it work fine.
    but one ascx components use an CollapsiblePanelExtender control.
    The editor show the ascx component correctly and the project work fine.
    ...but in edit mode the main page do not show ascx that contain CollapsiblePanelExtender.
    "Error rendering control" message is showed.

    is it an my error or there's some problems?
    thanks in advance

    Enorme Vigenti
  • Re: Problem with CollapsiblePanelExtender

    08-30-2006, 4:24 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    Please post a simple page demonstrating this problem.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Problem with CollapsiblePanelExtender

    08-31-2006, 3:48 AM

    This is the sample code for my problem:

    Master Page:
    <%@ Master Language="VB" CodeFile="Project1.master.vb" Inherits="Project1" %>
    <!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"></head>
    <body>
        <form id="form1" runat="server">
        <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
         
        
       	 <table cellspacing="0" cellpadding="0" width="100%">
    	    <tr>
            	<td style="width:15%;">
    		    <asp:contentplaceholder id="CPH_Left" runat="server" ></asp:contentplaceholder>            
    	    	</td>
        		<td style="width:85%" class="Infonet_TD_Black">
            	    <asp:contentplaceholder id="CPH_Right" runat="server"></asp:contentplaceholder>
    	    	</td>
        	    </tr>
        	</table>
       
        </form>
    </body>
    </html>
    
    Control-page:
    <%@ Control Language="VB" AutoEventWireup="false" CodeFile="Site.ascx.vb" Inherits="Site" %>
    <%@ Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="cc1" %>
    <fieldset >
    <legend>Site Information</legend>
    <table border="0" >
    <tr>
    <td><asp:Label AssociatedControlID="TxtSiteName" ID="Label1" runat="server" Text="Site Name" ></asp:Label></td>
    <td><asp:TextBox ID="TxtSiteName" runat="server" MaxLength="50" ></asp:TextBox></td>
    </tr>
    </table>
    <br />
    
        <asp:LinkButton ID="LinkButton3" runat="server"><asp:Label ID="lblfield" runat="server">Show other fileds...</asp:Label></asp:LinkButton>
        <asp:Panel ID="Panel5" runat="server" CssClass="collapsePanelHeader" Height="180px">
        <table border="0" >
        	<tr>
        	  <td>
        		Other fields...
        	  </td>
        	</tr>
        </table>
        </asp:Panel>
        <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server">
        <cc1:CollapsiblePanelProperties TargetControlID="Panel5"  ExpandControlID="LinkButton3"  CollapseControlID="LinkButton3"  Collapsed="False" TextLabelID="lblfield" CollapsedText="Show other fields..." ExpandedText="Hidden fields" SuppressPostBack="true"/> 
        </cc1:CollapsiblePanelExtender>
    
    </fieldset>
    
    
    MAIN PAGE:
    <%@ Page Language="VB" MasterPageFile="~/Project.master" AutoEventWireup="false" CodeFile="Main.aspx.vb" Inherits="Main" title="Untitled Page" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>
    <%@ Register Src="Site.ascx" TagName="Site" TagPrefix="uc1" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="CPH_Left" Runat="Server" >
        <atlas:ScriptManagerProxy ID="ScriptManagerProxy2"  runat="server" EnableScriptComponents="False" >
        </atlas:ScriptManagerProxy>
        
        <atlas:UpdatePanel ID="UpdatePanel2" runat="server" >
        <ContentTemplate  >
            <fieldset>
                <legend style="background-color:#D8DFC9;">Search</legend>
                <table id="TableSearchTree" runat="server" border="0" >
                    <tr>
                    <td style="height: 26px"><asp:Label ID="lblCombo1" runat="server" Text="Table" CssClass="ITB_Label3"></asp:Label></td>
                    <td style="height: 26px">
                        <asp:DropDownList ID="DropDownList1" runat="server" Width="154px">
                            <asp:ListItem Value="0">first</asp:ListItem>
                            <asp:ListItem Value="1">second</asp:ListItem>
                            <asp:ListItem Value="2">third</asp:ListItem>
                        </asp:DropDownList></td>
                    </tr>
    
                    <tr>
                    <td style="height: 26px"><asp:Label ID="lblSearchTree" runat="server" Text="Search" CssClass="ITB_Label3"></asp:Label></td>
                    <td style="height: 26px"><asp:TextBox ID="TxtSearchTree" runat="server" MaxLength="50" ></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td colspan="2"><asp:Button ID="btnSearchTree" runat="server" Text="find" OnClick="btnSearchTree_Click"  />
                        <asp:Button ID="btnRefresh" runat="server" Text="Refresh tree" OnClick="btnRefresh_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
    
            <asp:TreeView ID="TreeView1" runat="server" meta:resourcekey="TreeView1Resource1"   >         
            </asp:TreeView>
            
        </ContentTemplate>
        
        </atlas:UpdatePanel>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server"></asp:XmlDataSource>
        <!-- Mode="Conditional"
        <Triggers>
            <atlas:ControlEventTrigger ControlID="TreeView1" EventName="SelectedNodeChanged"/>
        </Triggers>
        -->
    
    </asp:Content>
    
    <asp:Content ID="Content2" ContentPlaceHolderID="CPH_Right" Runat="Server" >
    
        <atlas:ScriptManagerProxy ID="ScriptManagerProxy1"  runat="server" EnableScriptComponents="False">
        </atlas:ScriptManagerProxy>
        
          
        <atlas:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <uc1:Site ID="Site1" runat="server" />
            </ContentTemplate>
        </atlas:UpdatePanel>
        
        
        
    </asp:Content>
    
    
     
    Enorme Vigenti
  • Re: Problem with CollapsiblePanelExtender

    08-31-2006, 9:02 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    Thanks - I've opened work item 2776 to track this.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Problem with CollapsiblePanelExtender

    12-12-2006, 2:09 PM

    Hi.... Why I have to do if I want to expand the  CollapsiblePanelExtender with a Button or by code... automaticali..

    My CollapsiblePanelExtender is this:

     <atlasToolKit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server">
                            <atlasToolKit:CollapsiblePanelProperties
                                TargetControlId="ContentPanel"
                                ExpandControlID="TitlePanel"
                                CollapseControlId="TitlePanel"
                                Collapsed="true"
                                TextLabelID ="Label1"
                                ExpandedText="(Ocultar Autoevaluación ...)"
                                CollapsedText="(Mostrar Autoevaluación...)"
                                ImageControlId="image1"
                                ExpandedImage="../images/haciaarriba.png"
                                CollapsedImage="../images/haciaabajo.png"
                                SuppressPostBack="true"
                            />
                        </atlasToolKit:CollapsiblePanelExtender>

Page 1 of 1 (5 items)