[CLOSED] Page not showing Panels and data

  1. #1

    [CLOSED] Page not showing Panels and data

    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)
    <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <asp:Content ID="Content2" ContentPlaceHolderID="UserLinks" runat="server">
    <asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
         <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:Panel runat="server" Layout="HBoxLayout">
        <ext:FormPanel ID="FormPanel1" runat="server" Border="true" Title="Previous Applications" PaddingSpec="0 15 15 15">
                       <ext:GridPanel ID="GridPanel1" runat="server" Border="true" Anchor="50%">
                                <ext:Store ID="Store1" runat="server" OnReadData="Store1_ReadData">
                                        <ext:Model ID="Model1" runat="server" IDProperty="StudentEmplID">
                                                <ext:ModelField Name="SubmitDate" />
                                                <ext:ModelField Name="Advisor" />
                                                <ext:ModelField Name="StatusCode" />
                            <ColumnModel   runat="server">
                                    <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" />
                        <ext:GridView ID="GridView1" runat="server">
                            <GetRowClass Handler="return 'x-grid-row-expanded';" />
                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" Mode="Multi" />
                <ext:FormPanel runat="server">
                        <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>
    Last edited by Daniil; Jan 27, 2016 at 9:40 AM. Reason: [CLOSED]
  2. #2

    Your sample code does not run in Ext.NET 1.7. Are you using another version? To me, it shows that the model definition in the store is incorrect. Look how does a store look like in current Ext.NET 1.7 examples:
    - Form with details
    - Simple ArrayGrid

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] PagingToolbar showing Page 1 of 0 in empty page
    By FpNetWorth in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 05, 2014, 10:18 AM
  2. [CLOSED] Using Layout accordion card showing all Panels every time
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 14, 2012, 1:29 PM
  3. Replies: 1
    Last Post: Feb 03, 2012, 2:36 PM
  4. Replies: 1
    Last Post: Jan 19, 2012, 4:20 PM
  5. Replies: 3
    Last Post: Sep 27, 2011, 1:41 PM

Tags for this Thread

Posting Permissions