EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 09:04:55 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
show result of a sum on a datagrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: show result of a sum on a datagrid (Read 5857 times)
pedroc
Newbie
Posts: 17
show result of a sum on a datagrid
«
on:
April 02, 2015, 07:42:04 AM »
I need to add multiple cells (editable) of a datagrid and display it in a cell result (not editable) and not as referring to the result cell to assign the sum
onBeginEdit:function(rowIndex){
var editors = $('#dg').datagrid('getEditors', rowIndex);
var n = [];
for (var i = 0; i < 26; i++) {
n
= $(editors
.target);
}
n[0].add(n[1]).numberbox({
onChange:function(){
var tt = 0;
for (var i = 0; i < 26; i++) {
tt += parseFloat(n
.numberbox('getValue'));
}
here you go what is not.numberbox('setValue',tt);
}
})
}
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...