Hi,
I have 2 numeric textbox, gridcalculated column and footer column.
Once the value is entered in the numeric textbox (something like onblur), i want to calculate the value for gridcalculated column and footer column. The lblTotalValue should have the total of the "GridCalculatedColumn".
This is the UI which I have:
<
telerik:GridTemplateColumn
UniqueName
=
"OrderQuantity"
HeaderText
=
"Order Quantity"
DataField
=
"OrderQuantity"
>
<
EditItemTemplate
>
<
telerik:RadNumericTextBox
ID
=
"txtOrderQuantity"
runat
=
"server"
>
</
telerik:RadNumericTextBox
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"UnitPrice"
HeaderText
=
"Unit Price"
DataField
=
"UnitPrice"
>
<
EditItemTemplate
>
<
telerik:RadNumericTextBox
ID
=
"txtUnitPrice"
runat
=
"server"
>
</
telerik:RadNumericTextBox
>
</
EditItemTemplate
>
<
FooterTemplate
>
<
asp:Label
ID
=
"lblTotal"
Text
=
"Total: "
runat
=
"server"
></
asp:Label
>
<
asp:Label
ID
=
"lblTotalValue"
runat
=
"server"
></
asp:Label
>
</
FooterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridCalculatedColumn
DataFormatString
=
"{0:C}"
DataType
=
"System.Double"
HeaderText
=
"Extended Price"
UniqueName
=
"ExtendedPrice"
DataFields
=
"OrderQuantity,UnitPrice"
Expression
=
"{0}*{1}"
Aggregate
=
"Sum"
Visible
=
"true"
>
</
telerik:GridCalculatedColumn
>
How to achieve this?
Thanks