We have a grid that uses a series of numeric columns. For consistency, the developer was attempting to use a GridNumericColumnEditor; this works properly when it's applied to a single column, but when it's applied to more than one column the page throws a ArgumentOutOfRangeException when attempting to edit.
The column editor is defined as;
...and the Grid columns are defined as;
<
If we have the ColumnEditorID set in only one column (any column) it works, but when it's added to the second or subsequent column it throws the error. Is there something we're missing?
The column editor is defined as;
<
telerik:GridNumericColumnEditor
ID
=
"customNumeric"
runat
=
"server"
><
br
>
<
NumericTextBox
Width
=
"70"
/><
br
>
</
telerik:GridNumericColumnEditor
>
...and the Grid columns are defined as;
<
telerik:GridNumericColumn DataField="Area1" DataType="System.Decimal" HeaderText="Area1"<
br
>
SortExpression="Area1" UniqueName="Area1" NumericType="Currency" DataFormatString="{0:c2}"<
br
>
Aggregate="Sum" ColumnEditorID="customNumeric"><
br
>
</
telerik:GridNumericColumn
><
br
>
<
telerik:GridNumericColumn
DataField
=
"Area2"
DataType
=
"System.Decimal"
HeaderText
=
"Area2"
<br>
SortExpression="Area2" UniqueName="Area2" NumericType="Currency" DataFormatString="{0:c2}"<
br
>
Aggregate="Sum" ColumnEditorID="customNumeric"><
br
>
</
telerik:GridNumericColumn
>
If we have the ColumnEditorID set in only one column (any column) it works, but when it's added to the second or subsequent column it throws the error. Is there something we're missing?