Hi,
Could anyone advise me please as to how to add addtional comparsion validation to my radgrid below.
I have 2 columns that are required fields: BasketsCaughtTotal and BasketsSampledTotal
I also require that BasketsCaughtTotal must always be equal to or greater than BasketsSampledTotal
Thank you, Ida
Could anyone advise me please as to how to add addtional comparsion validation to my radgrid below.
I have 2 columns that are required fields: BasketsCaughtTotal and BasketsSampledTotal
I also require that BasketsCaughtTotal must always be equal to or greater than BasketsSampledTotal
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"TripCode"
FilterControlAltText
=
"Filter TripCode column"
HeaderText
=
"Trip Code"
SortExpression
=
"TripCode"
UniqueName
=
"TripCode"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"VesselCode"
HeaderText
=
"Vessel"
UniqueName
=
"VesselCode"
Visible
=
"false"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"HaulNumber"
HeaderText
=
"Haul"
UniqueName
=
"HaulNumber"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"RigNumber"
HeaderText
=
"Rig"
UniqueName
=
"RigNumber"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CatchTypeName"
HeaderText
=
"Catch Type"
UniqueName
=
"CatchTypeName"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CatchTypeCode"
HeaderText
=
"Catch Type Code"
Visible
=
"false"
UniqueName
=
"CatchTypeCode"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridCalculatedColumn
HeaderText
=
"Raising Factor"
UniqueName
=
"RaisingFactor"
DataType
=
"System.Decimal"
DataFormatString
=
"{0:N2}"
DataFields
=
"BasketsCaughtTotal, BasketsSampledTotal"
Expression
=
"{0}/{1}"
/>
<
telerik:GridBoundColumn
DataField
=
"BasketsCaughtTotal"
HeaderText
=
"Baskets Caught Total"
UniqueName
=
"BasketsCaughtTotal"
ColumnEditorID
=
"BasketsCaughtTotal"
Visible
=
"false"
DataType
=
"System.Decimal"
DataFormatString
=
"{0:N5}"
>
<
ColumnValidationSettings
EnableRequiredFieldValidation
=
"True"
>
<
RequiredFieldValidator
ID
=
"RFTotalBasketsCaught"
Font-Bold
=
"True"
> Enter baskets caught</
RequiredFieldValidator
>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"BasketsSampledTotal"
HeaderText
=
"Baskets Sampled Total"
UniqueName
=
"BasketsSampledTotal"
ColumnEditorID
=
"BasketsSampledTotal"
Visible
=
"false"
DataType
=
"System.Decimal"
DataFormatString
=
"{0:N5}"
>
<
ColumnValidationSettings
EnableRequiredFieldValidation
=
"True"
>
<
RequiredFieldValidator
ID
=
"RFTotalBasketsSampled"
Font-Bold
=
"True"
> Enter baskets sampled</
RequiredFieldValidator
>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
</
Columns
>
Thank you, Ida