Jul 21, 2009, 9:31 AM
GridPanel - control visibility of column by using another dataindex's value
How do I set the visible property of the column "Quantity" by using the value from another column from the same store.
DataIndex="bitDiscontinued" within a girdpanel.
<ext:NumberField ID="txtQuantity" MaxValue="2000" AllowNegative="false" AllowDecimals="false"
MaxLength="4"
<U>Visible="Want to use the DataIndex="bitDiscontinued" to control the hiding of this column"</U>
runat="server" />
<ext:GridPanel runat="server" ID="GridPanel1" Height="400px" ClicksToEdit="0" Frame="true"
Border="true" StoreID="Products">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column Header="ProductVersionId" DataIndex="atnProductVersionId" Sortable="true"
Hidden="true">
<Editor>
<ext:TextField ID="TextField12" runat="server" />
</Editor>
</ext:Column>
<ext:Column Header="Number" DataIndex="strProductVersionNumber" Sortable="true">
<Commands>
<ext:ImageCommand CommandName="Details" Icon="Information" Style="margin-left: 5px !important;" />
</Commands>
</ext:Column>
<ext:Column Header="Quantity" DataIndex="numQuantity">
<Editor>
<ext:NumberField ID="txtQuantity" MaxValue="2000" AllowNegative="false" AllowDecimals="false"
MaxLength="4"
<U>Visible="Want to use the DataIndex of bitDiscontinued - How do I do this"</U>
runat="server" />
</Editor>
</ext:Column>