|
Title: many numberbox same reaction? (PLEASE) Post by: pedroc 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); } }) } |