Jan 19, 2016, 5:29 PM
[CLOSED] Page not showing Panels and data
Hi,
I have a main panel in which i am adding two panels arranged HBoxLayout. First panel is a FORMPANEL containin some textfields and the second panel is also a FORMPANEL containing a gridview which displays data from DB in the table. If I dont populate the table then I can see all the panels on the window but if i populate the gridview then the main panel vanishes.
I have a main panel in which i am adding two panels arranged HBoxLayout. First panel is a FORMPANEL containin some textfields and the second panel is also a FORMPANEL containing a gridview which displays data from DB in the table. If I dont populate the table then I can see all the panels on the window but if i populate the gridview then the main panel vanishes.
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GridTest.aspx.cs" Inherits="InterpreterCorps.GridTest" %>
<script runat="server">
protected void Store1_ReadData(object sender, StoreReadDataEventArgs e)
{
this.Store1.DataBind();
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="UserLinks" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Panel runat="server" Layout="HBoxLayout">
<Items>
<ext:FormPanel ID="FormPanel1" runat="server" Border="true" Title="Previous Applications" PaddingSpec="0 15 15 15">
<Items>
<ext:GridPanel ID="GridPanel1" runat="server" Border="true" Anchor="50%">
<Store>
<ext:Store ID="Store1" runat="server" OnReadData="Store1_ReadData">
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="StudentEmplID">
<Fields>
<ext:ModelField Name="SubmitDate" />
<ext:ModelField Name="Advisor" />
<ext:ModelField Name="StatusCode" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" DataIndex="InterpreterCorpsID" Text="Application ID" Width="100" />
<ext:Column ID="Column2" runat="server" DataIndex="SubmitDate" Text="Submit Date" Width="120" />
<ext:Column ID="Column3" runat="server" DataIndex="Advisor" Text="Advisor" Width="100" />
<ext:Column ID="Column4" runat="server" DataIndex="StatusCode" Text="Status" Width="100" />
</Columns>
</ColumnModel>
<View>
<ext:GridView ID="GridView1" runat="server">
<GetRowClass Handler="return 'x-grid-row-expanded';" />
</ext:GridView>
</View>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" Mode="Multi" />
</SelectionModel>
</ext:GridPanel>
</Items>
</ext:FormPanel>
<ext:FormPanel runat="server">
<Items>
<ext:TextField ID="TextField_LanguageGPA" runat="server" FieldLabel="Language GPA" Name="languageGPA" LabelWidth="150" Width="500" AllowBlank="False"></ext:TextField>
<ext:TextField ID="TextField_Advisor" runat="server" FieldLabel="Advisor Name" Name="advisor" LabelWidth="150" Width="500"></ext:TextField>
<ext:DropDownField ID="TextField_RatingFaculty" runat="server" FieldLabel="Rating Faculty" Name="ratingFaculty" LabelWidth="150" Width="500"></ext:DropDownField>
<ext:TextField ID="TextField_LanguagePairs" runat="server" FieldLabel="Language Pair(s)" Name="languagePair" EmptyText="French to English" LabelWidth="150" Width="500"></ext:TextField>
<ext:TextField ID="TextField_Dialects" runat="server" FieldLabel="Dialect(s)" Name="dialect" EmptyText="Optional" LabelWidth="150" Width="500"></ext:TextField>
<ext:TextField ID="TextField_TranslationCourse" runat="server" FieldLabel="Translation Courses Attended" Name="translationCourses" LabelWidth="150" Width="500"></ext:TextField>
<ext:TextField ID="TextField_RelExp" runat="server" FieldLabel="Other Relevant Experience" Name="relExp" EmptyText="Optional" LabelWidth="150" Width="500" Height="200"></ext:TextField>
</Items>
</ext:FormPanel>
</Items>
</ext:Panel>
</asp:Content>
Last edited by Daniil; Jan 27, 2016 at 9:40 AM.
Reason: [CLOSED]