PDA

View Full Version : Windows + Panel + Gridview? bug?



MrMp3
Apr 21, 2008, 11:45 AM
hi, i have a problem, when I use the convination of window (panel (gridview)) and show the windows with the click event of a button (for example) before a click the button, apears the gridview borders over the page. Excuse me, but english is not my native languaje, im from argentine!.

Thanks
Ariel

geoffrey.mcgill
Apr 21, 2008, 12:44 PM
Hi Ariel,

Can you provide a code sample demonstrating the problem?

MrMp3
Apr 21, 2008, 1:19 PM
Hi geoffrey, i use the example on the web




<body>
<div style="margin: 20px;">
<form id="form1" runat="server">
<cool:ScriptManager ID="ScriptManager1" runat="server" />

<h1>
Window with nested Panel</h1>
<p>
The following example demonstrates how to create a Window with nested controls and
content.</p>
<div style="margin: 15px 0;">
<p>
<asp:Button ID="Button1" runat="server" Text="Show Window" /></p>




<cool:Window ID="Window1" runat="server" Title="Vacation Details" Width="400px" Height="630px"
BodyStyle="padding: 6px;" CloseAction="Hide" Collapsible="True" TriggerElement="Button1"
AnimateTarget="Button1">
<Content>
<cool:Panel ID="Panel1" runat="server" Title="Summary" Height="125px" BodyStyle="padding: 6px;"
Collapsible="True">
<Content>
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</Content>
</cool:Panel>
</Content>
</cool:Window>
</form>


</body>


On CodeBehind I Databind data to GridView1.
Whe I execute in IE or Firefox, over the text "The following example demonstrates how to create a Window with nested controls and content" i could see the gridview borders. When I click the button the window1 show, when i close the borders dessapears.
Thanks!!