CollapsesiblePanelExtender show patial field of gridview

Posted by Vatcharm under ASP.NET AJAX on 2/18/2010 | Views : 1899 | Status : [Member] | Replies : 4
Hi Guru
I have webusercontrol that contain collapsesiblePanelExtender contro when i run mainpage girdview in panel2 show only 3 fileld (total 7 field).
help me please
thank you very much
Joob.


<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WUCEmployer.ascx.cs" Inherits="WUCEmployer" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel ID="Panel1" runat="server" Height="160px" Width="815px">
<div><asp:Label ID="Label1" runat="server" Text="Employer Name:" Width="105px"></asp:Label><asp:TextBox ID="txtEmpName" runat="server" BorderStyle="None" Width="425px"></asp:TextBox></div>
<div>
<asp:Label ID="Label2" runat="server" Text="Address" Width="105px"></asp:Label><asp:TextBox ID="txtAddress" runat="server" BorderStyle="None" Width="425px"></asp:TextBox></div>
<div>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" >
<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server"
TargetControlID="Panel2"
CollapsedSize="0"
ExpandedSize="500"
Collapsed="True"
ExpandControlID="LinkButton1"
CollapseControlID="LinkButton1"
TextLabelID="lblCollap"
CollapsedText="Show Details..."
ExpandedText="Hide Details"
ImageControlID="Image1"
ExpandedImage="images/FillUpHS.png"
CollapsedImage="images/FillDownHS.png"
ExpandDirection="Vertical" />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
CellPadding="4" DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None">
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
</asp:Panel>

</ContentTemplate>
</asp:UpdatePanel>




Responses

Posted by: Vuyiswamb on: 2/18/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Please add your code in [ code ] tags provided here in the toolbar when you post your code

Thank you for posting at Dotnetfunda
[Administrator]

Vatcharm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 2/18/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
It shouldnt be slow for this code I think. Must be the code that you write is taking lots of time..

Review all your code and see if there is any problem there.
Also use new Application Pool for your application, so as to separate the memory area of your server.

I hope this would help you.
Cheers

www.abhisheksur.com

Vatcharm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vatcharm on: 2/18/2010 [Member] Starter

Up
0
Down
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WUCEmployer.ascx.cs" Inherits="WUCEmployer" %> 

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel ID="Panel1" runat="server" Height="160px" Width="815px">
<div><asp:Label ID="Label1" runat="server" Text="Employer Name:" Width="105px"></asp:Label><asp:TextBox ID="txtEmpName" runat="server" BorderStyle="None" Width="425px"></asp:TextBox></div>
<div>
<asp:Label ID="Label2" runat="server" Text="Address" Width="105px"></asp:Label><asp:TextBox ID="txtAddress" runat="server" BorderStyle="None" Width="425px"></asp:TextBox></div>
<div>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" >
<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server"
TargetControlID="Panel2"
CollapsedSize="0"
ExpandedSize="500"
Collapsed="True"
ExpandControlID="LinkButton1"
CollapseControlID="LinkButton1"
TextLabelID="lblCollap"
CollapsedText="Show Details..."
ExpandedText="Hide Details"
ImageControlID="Image1"
ExpandedImage="images/FillUpHS.png"
CollapsedImage="images/FillDownHS.png"
ExpandDirection="Vertical" />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
CellPadding="4" DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None">
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
</asp:Panel>

</ContentTemplate>
</asp:UpdatePanel>


Vatcharm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishithraj on: 2/25/2010 [Member] Bronze

Up
0
Down
Check

http://www.c-sharpcorner.com/UploadFile/prathore/CollapsiblePanelExtender05142009071135AM/CollapsiblePanelExtender.aspx

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

Vatcharm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response