ラベル collapsiblepanelextender の投稿を表示しています。 すべての投稿を表示
ラベル collapsiblepanelextender の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

ResizableControlExtender in CollapsiblePanelExtender

Hi,

I have a series of dynamically created controls, each with a ResizableControlExtender within a CollapsiblePanelExtender...and all is good until the time you come to collapse the panel.

At this point, the resize image of the ResizableControlExtender stays exactly where it was on the page and is visible above all other controls on the page. I have tried setting the z-index property on all affected controls to sort this out, but this has had no effect.

Can anyone suggest anything else I need to do to sort out this issue?

Has anybody seen this before?

If it helps, I am adding the ResizableControlExtender to a Panel which contains a TextBox in order to resize the TextBox.


Hi,

Can you show me a simple repro?

2012年3月24日土曜日

Right border not showing in CollapsiblePanel

I have a problem with the CollapsiblePanelExtender. The right border of the panel is not showing at all. The weird thing is that the left, top, and bottom borders are showing perfectly. I tried using a cssclass with the borders declared in it, with no success. Also, I have the height property of the panel in 0px to prevent it from flicking at page load, and the overflow:hidden in the css class. Any ideas why this happens? Thanks!

I guess there is not enough space on the right side to display the border. Remove overflow:hidden to see whether it shows the border, if it does then adjust the width of the container to fully acommodate the panel.


The container's width is 1024px and the panel is just 600px. I removed the overflow:hidden property and it's still not working. I also made a new web site and generated a new collapsiblePanel. It did'nt work either, maybe I am making some kind of mistake. Here is the aspx code:

%@. Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %
<%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>

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

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

<asp:Panel ID="Panel1" runat="server" Height="192px" Style="left: 332px; position: absolute;
top: 44px; border-left-color: fuchsia; border-bottom-color: fuchsia; border-top-color: fuchsia; border-right-color: fuchsia;" Width="249px">

<asp:Panel ID="Panel2" runat="server" Height="205px" Style="border-left-color: fuchsia;
border-bottom-color: fuchsia; border-top-style: solid; border-top-color: fuchsia;
border-right-style: solid; border-left-style: solid; border-right-color: fuchsia;
border-bottom-style: solid" Width="400px">
</asp:Panel>
</asp:Panel>
<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" CollapseControlID="Button2"
CollapsedText="I'm collapsed..." ExpandControlID="Button2" ExpandedText="I'm expanded"
TargetControlID="Panel1" TextLabelID="Hola!" Collapsed="True" CollapsedSize="0" ExpandedSize="400">
</cc1:CollapsiblePanelExtender>
<asp:Button ID="Button2" runat="server" Style="left: 397px; position: absolute; top: 18px"
Text="Button" />

</form>
</body>
</html


In the above code, Panel1 width is 249px which is less than Panel2's width 400px. Removing Panel1's Width="249px" attribute shows the right border.

<asp:Panel ID="Panel1" runat="server" Height="192px" Style="left: 332px; position: absolute;
top: 44px; border-left-color: fuchsia; border-bottom-color: fuchsia; border-top-color: fuchsia; border-right-color: fuchsia;">

2012年3月21日水曜日

RoundedCornersExtender and CollapsiblePanelExtender dont work together on IE7

This code works well on Firefox.

I need to create Panels that have rounded corners and that are collapsable...

on IE7 the panel flashes and does not expand.

Thanks,

Eyal

<

asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager><divid="divFiltersHeader"><asp:PanelID="pnlFiltersHeader"Width="520"Height="30"CssClass="TransHistoryFiltersHeader"runat="server"><divstyle="float: left;padding: 5px;vertical-align: middle;">Advanced Filters</div></asp:Panel></div><divid="divFilters"><asp:Panelid="pnlFilters"CssClass="TransHistoryFiltersTable"runat="server"><p>Here come the filters !!!</p><p>filter 1</p><p>filter 2</p><p>test:<asp:DropDownListID="DropDownList1"runat="server"><asp:ListItem>test1</asp:ListItem><asp:ListItem>test2</asp:ListItem><asp:ListItem>test3</asp:ListItem></asp:DropDownList></p><p>filter 4</p></asp:Panel></div><toolkit:CollapsiblePanelExtenderID="cpeFiltersPanel"runat="server"TargetControlID="pnlFilters"ExpandControlID="pnlFiltersHeader"CollapseControlID="pnlFiltersHeader"Collapsed="true"SuppressPostBack="true">

</toolkit:CollapsiblePanelExtender><toolkit:RoundedCornersExtenderID="RoundedCornersExtender1"runat="server"TargetControlID="pnlFiltersHeader"Radius="5"></toolkit:RoundedCornersExtender>

I don't know if you were able to solve this problem or not but I had the same issue and was able to get around it. It appears that when both extenders are calling the same panel, the CollapsiblePanelExtender breaks. To solve this I simply nested thepnlFiltersHeaderpanel, as you have called it inside a new panel and a div and set Corners="Top". I also nested the area that expands and collapses inside a new panel and div and set Corners="Bottom" and pointed to each with seperate RoundedCornersExtender's. This allowed me to have a title that is one color and a bottom that expands in another color, but the form looks as if it is a continuous piece.

My solution is setup as follows (To save as much space as possible I removed all of the labels and text boxes and replaced them with ".......CONTENT..........":

<script>function pageLoad() {

document.getElementById(

'panelarea').style.display ="";

}

</script><asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>

<

asp:PanelID="Panel3"runat="server"style="width:287px"BackColor="SteelBlue"> <div>

<asp:PanelID="Panel1"runat="server"style="cursor:hand; width:287px;"BackColor="SteelBlue"Width="180px">

......CONTENT......

</asp:Panel> </div></asp:Panel><asp:PanelID="Panel4"runat="server"style="width:287;"BackColor="Gainsboro"Width="287px"> <div> <divid="panelarea"style="display: none;"> <asp:PanelID="Panel2"runat="server"style="cursor:hand; overflow:hidden;"BackColor="Gainsboro"Width="287px"Height="0"> <div> .......CONTENT.........

</div> </asp:Panel> </div> </div></asp:Panel>

<cc1:CollapsiblePanelExtenderID="CollapsiblePanelExtender1"runat="server"TargetControlID="Panel2"CollapsedSize="0"ExpandedSize="275"Collapsed="False"ExpandControlID="Panel1"CollapseControlID="Panel1"AutoCollapse="False"AutoExpand="False"ScrollContents="False"ImageControlID="Image1"ExpandedImage="~/Images/collapse.jpg"ExpandedText="Hide Details"CollapsedImage="~/Images/expand.jpg"CollapsedText="Show Details..."ExpandDirection="Vertical"SuppressPostBack="true"></cc1:CollapsiblePanelExtender>

<cc1:RoundedCornersExtenderID="RoundedCornersExtender1"runat="server"TargetControlID="Panel3"Radius="6"Corners="Top"></cc1:RoundedCornersExtender><cc1:RoundedCornersExtenderID="RoundedCornersExtender2"runat="server"TargetControlID="Panel4"Radius="6"Corners="Bottom"></cc1:RoundedCornersExtender>