Error Upgrading from 1.x to 4.x

  1. #1

    Error Upgrading from 1.x to 4.x

    Hi,

    I'm trying to upgrade from a much older version to the latest.

    However, I am having issue with my current GridPanel. The problem is with Topbar. If i take out the comboboxes and textbox, it works fine. Please what I'm I missing? see code below:
    <ext:GridPanel ID="GridPanel1" Cls="x-grid-custom" Header="false" Border="false" runat="server" StoreID="storeEpisodes">
                                                        <TopBar>
                                                            <ext:Toolbar ID="Toolbar3" runat="server" Cls="x-toolbar-ltgrey">
                                                                <Items>
                                                                    <ext:ComboBox runat="server" ID="cboLocation" Width="95" NoteAlign="Top"
                                                                        ColumnName="LocationId" FilterClause="Equals" Editable="false">
                                                                        <SelectedItems>
                                                                            <ext:ListItem Index="0" />
                                                                        </SelectedItems>
                                                                    </ext:ComboBox>
                                                                    <ext:ToolbarSeparator />
                                                                    <ext:ComboBox ID="cboSearch" Width="65" NoteAlign="Top" runat="server"
                                                                        ColumnName="Search" FilterClause="Equals" Editable="false">
                                                                        <SelectedItems>
                                                                            <ext:ListItem Index="1" />
                                                                        </SelectedItems>
                                                                        <Items>
                                                                            <ext:ListItem Text="MRN" Value="MRN" />
                                                                            <ext:ListItem Text="Name" Value="Name" />
                                                                        </Items>
                                                                    </ext:ComboBox>
                                                                    <ext:TextField MsgTarget="Qtip" ID="txtSearch" BindingProperty="Text" Width="100"
                                                                        NoteAlign="Top" runat="server" />
                                                                    <ext:ToolbarSeparator />
                                                                    <ext:ComboBox ID="cboStatus" Width="80" NoteAlign="Top" runat="server"
                                                                        ColumnName="Status" FilterClause="Equals" Editable="false">
                                                                        <SelectedItems>
                                                                            <ext:ListItem Index="1" />
                                                                        </SelectedItems>
                                                                        <Items>
                                                                            <ext:ListItem Text="All Status" Value="" />
                                                                            <ext:ListItem Text="Active" Value="A" />
                                                                            <ext:ListItem Text="Inactive" Value="I" />
                                                                        </Items>
                                                                    </ext:ComboBox>
                                                                    <ext:ToolbarSeparator />
                                                                    <ext:Button ID="Button26" Icon="Reload" Text="Refresh" runat="server">
                                                                        <Listeners>
                                                                            <Click Handler="#{LinkButton1}.toggle(true);#{hid1}.setValue('All');#{ctrlPager}.moveFirst();" />
                                                                        </Listeners>
                                                                    </ext:Button>
                                                                </Items>
                                                            </ext:Toolbar>
                                                        </TopBar>
                                                        <ColumnModel runat="server">
                                                            <Columns>
                                                                <ext:RowNumbererColumn runat="server" Width="35" />
                                                                <ext:CommandColumn runat="server" Width="35" Align="Center">
                                                                    <Commands>
                                                                        <ext:GridCommand Icon="UserEdit" CommandName="LoadPatient">
                                                                            <ToolTip Text="Load this Patient" />
                                                                        </ext:GridCommand>
                                                                    </Commands>
                                                                </ext:CommandColumn>
                                                                <ext:Column runat="server" Text="Patient Id" Hidden="true" DataIndex="CustID">
                                                                </ext:Column>
                                                                <ext:Column runat="server" Text="MRN" Width="100" DataIndex="MRN">
                                                                </ext:Column>
                                                                <ext:Column runat="server" Text="Patient Name" DataIndex="Name">
                                                                </ext:Column>
                                                                <ext:Column runat="server" Text="Location" DataIndex="LocationCode">
                                                                </ext:Column>
                                                                <ext:Column runat="server" Text="Status" Width="80" DataIndex="Status">
                                                                </ext:Column>
                                                            </Columns>
                                                        </ColumnModel>
                                                    </ext:GridPanel>
  2. #2
    Hello @ifyonyekpe! Welcome to Ext.NET forums!

    At least one of the errors that must be happening your side is because you are specifying NoteAlign="Top" on combo boxes without a note. If you don't want a note initially, just set Note=" " with a whitespace in it and it should work.

    But it is hard to tell whether there are other problems or not on the page.

    First, you didn't actually tell us what errors are occurring on your page, second the code snippet your provided is not runnable. It would be best if you provided simplified, runnable test cases to reproduce your issue so we could better understand and advise about your problem.

    Well, if the problem is just the note issue, then I was lucky finding your answer, if not, please follow this guidelines thread to build simplified code samples we could run and reproduce your issue on our side: Tips for creating simplified code samples

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thanks,

    It was due to the NoteAlign property.

Similar Threads

  1. [CLOSED] Theme error after upgrading to 3.1
    By zfreeman in forum 3.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 17, 2015, 12:15 PM
  2. [CLOSED] error after upgrading to MVC 4
    By EddieJensen in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 25, 2015, 3:52 AM
  3. Need help upgrading from 1.x to 2.x
    By wexman in forum 2.x Help
    Replies: 1
    Last Post: Jun 06, 2013, 11:28 AM
  4. Upgrading from V1.3 to V2.0
    By Birgit in forum 2.x Help
    Replies: 1
    Last Post: Mar 29, 2012, 4:47 PM
  5. upgrading from 0.8.1 to 0.8.2
    By Kamal in forum 1.x Help
    Replies: 4
    Last Post: Apr 08, 2010, 5:52 PM

Tags for this Thread

Posting Permissions