Jun 16, 2009, 12:16 PM
[CLOSED] GridPanel NumberField MaxValue
Hi,
Does anyone have any suggestions on the [best] way to set the MaxVal of a NumberField to that of the row value of another column in the store/GridPanel? This would potentially result in each row's NumberField having a different MaxVal.
I've been looking at the validator function and the focus event of the NumberField but it would appear that it's going to be quite convoluted as you don't have the row data provided.
Ben
Does anyone have any suggestions on the [best] way to set the MaxVal of a NumberField to that of the row value of another column in the store/GridPanel? This would potentially result in each row's NumberField having a different MaxVal.
I've been looking at the validator function and the focus event of the NumberField but it would appear that it's going to be quite convoluted as you don't have the row data provided.
Ben
<ext:Column DataIndex="Qty" Header="Quantity" Align="Right" Hideable="false" Width="80" />
<ext:Column DataIndex="Dispensed" Header="Dispensed" Sortable="false" MenuDisabled="true" Width="80" Align="Right" Hideable="false">
<Editor>
<ext:NumberField runat="server" ID="AmountDispensed" AllowBlank="true" AllowDecimals="true" BlankText="0" DecimalPrecision="3" Width="50" Stateful="false" />
</Editor>
</ext:Column>