Jan 31, 2017, 10:52 PM
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:
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>