EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 09:02:09 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
>
many numberbox same reaction? (PLEASE)
Pages: [
1
]
« previous
next »
Print
Author
Topic: many numberbox same reaction? (PLEASE) (Read 5887 times)
pedroc
Newbie
Posts: 17
many numberbox same reaction? (PLEASE)
«
on:
April 01, 2015, 08:14:29 AM »
want every change go adding and do not know how to react to the event
onBeginEdit:function(rowIndex){
var editors = $('#dg').datagrid('getEditors', rowIndex);
var n = [];
for (var i = 0; i < 28; i++) {
n
= $(editors
.target);
}
n[2].....................................n[20]).numberbox({ //not like telling here that for each of the N elements do what you want
onChange:function(){
var tt = 0;
for (var i = 2; i < 28; i++) {
tt += parseFloat(n
.numberbox('getValue'));
}
n[1].numberbox('setValue',tt);
}
})
}
«
Last Edit: April 02, 2015, 06:34:31 AM by pedroc
»
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...