jquery Programming Glossary: totalamount
jqGrid access cell data while it is being edited http://stackoverflow.com/questions/5121350/jqgrid-access-cell-data-while-it-is-being-edited val iRow iCol calculateTotal function calculateTotal var totalAmount 0 var totalTax 0 var grid jQuery #list var ids grid.jqGrid 'getDataIDs'.. id 'name' TOTAL grid.jqGrid 'setRowData' id 'amount' totalAmount 'tax' totalTax 'total' totalAmount totalTax else totalAmount.. id 'amount' totalAmount 'tax' totalTax 'total' totalAmount totalTax else totalAmount Number grid.jqGrid 'getCell' id..
jqGrid access cell data while it is being edited http://stackoverflow.com/questions/5121350/jqgrid-access-cell-data-while-it-is-being-edited function calculateTotal afterSaveCell function rowid name val iRow iCol calculateTotal function calculateTotal var totalAmount 0 var totalTax 0 var grid jQuery #list var ids grid.jqGrid 'getDataIDs' for var i 0 i ids.length i var id ids i if grid.jqGrid.. var i 0 i ids.length i var id ids i if grid.jqGrid 'getCell' id 'name' TOTAL grid.jqGrid 'setRowData' id 'amount' totalAmount 'tax' totalTax 'total' totalAmount totalTax else totalAmount Number grid.jqGrid 'getCell' id 'amount' totalTax Number.. i if grid.jqGrid 'getCell' id 'name' TOTAL grid.jqGrid 'setRowData' id 'amount' totalAmount 'tax' totalTax 'total' totalAmount totalTax else totalAmount Number grid.jqGrid 'getCell' id 'amount' totalTax Number grid.jqGrid 'getCell' id 'tax' Thanks..
|