Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
"server"
DataSourceID
"SqlDataSource1"
ShowFooter
"true"
>
MasterTableView
Columns
telerik:GridTemplateColumn
ItemTemplate
telerik:RadNumericTextBox
"RadNumericTextBox1"
ClientEvents-OnValueChanged
"OnValueChanged"
</
FooterTemplate
"RadNumericTextBox2"
<script type=
"text/javascript"
function
OnValueChanged(sender, args) {
var
grid = $find(
"<%=RadGrid1.ClientID %>"
);
totalAmount = 0;
if
(grid) {
MasterTable = grid.get_masterTableView();
Rows = MasterTable.get_dataItems();
for
(
i = 0; i < Rows.length; i++) {
row = Rows[i];
txtQuntity1 = row.findControl(
totalAmount = totalAmount+txtQuntity1.get_value();
}
footerTextBox =
'<%= ((GridFooterItem)RadGrid1.MasterTableView.GetItems(GridItemType.Footer)[0]).FindControl("RadNumericTextBox2").ClientID %>'
;
TextBox = document.getElementById(footerTextBox);
TextBox.control.set_value(totalAmount);
</script>