EasyUI Forum
September 14, 2025, 06:19:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: [SOLVED]How can i appendRow in groupFormatter? on: November 03, 2018, 01:09:46 PM

Ok, it's solved Wink
2  General Category / EasyUI for jQuery / Re: [SOLVED]How can i appendRow in groupFormatter? on: October 25, 2018, 02:26:27 AM
what is the code to make the sum of the tagihan_sisa column Huh

Here is my code :
Code:
<table id="dg_income_rekap" class="easyui-datagrid" url="income_rekap/rekap" toolbar="#toolbar_income_rekap" pagination="true" remoteSort="false" remoteFilter="true" pageSize="20" pageList="[20,40,80,100]" rownumbers="true" fitColumns="true" singleSelect="true" showFooter="true" striped="true" fit="true"
      data-options="
      collapsible:true,
      view:groupview,
      groupField:'kelompok',
      groupFormatter:function(value,rows,row){
                    return value + ' (' + rows.length + ' Periode)' + '  Rp.'
      }">
      <thead>
        <tr>
          <th field="periode" width="525" halign="center" align="left" sortable="true">Periode</th>
          <th field="tagihan" width="150" halign="center" align="right" formatter="rupiah" sortable="true">Tagihan</th>
          <th field="potongan" width="150" halign="center" align="right" formatter="rupiah" sortable="true">Potongan</th>
          <th field="ticket" width="150" halign="center" align="right" formatter="rupiah" sortable="true">Ticket</th>
          <th field="tagihan_sisa" width="150" halign="center" align="right" formatter="rupiah" sortable="true">Sisa Tagihan</th>
        </tr>
      </thead>
</table>
3  General Category / EasyUI for jQuery / Re: The sum of two numberbox on: January 05, 2017, 10:29:53 PM
ok, that's the way I tried, but it still does not work. value can not be contained in var a and var b.
4  General Category / EasyUI for jQuery / The sum of two numberbox on: January 05, 2017, 09:43:32 AM
Please help stworthy, I want to sum from two to one numberbox in the form..

Code:
<fieldset id="fieldset">
       <div align="center" class="ftitle">Isi Form Pelanggan Baru</div>
            <form id="fm" method="post" novalidate>
                    <tr>
                        <td class="fitem">
                            <input id="tagihan_bln" name="tagihan_bln" class="easyui-numberbox" formatter="rupiah"   style="width:250px;height:30px;text-align:right" data-options="label:'Tagihan :',precision:0,groupSeparator:','" required="true"></td>
                        <td class="fitem">
                            <input id="potongan" name="potongan" class="easyui-numberbox" formatter="rupiah" style="width:250px;height:30px;text-align:right" data-options="label:'Fee :',precision:0,groupSeparator:','" required="true"></td>
                        <td class="fitem">
                            <input id="tagihan_sisa" name="tagihan_sisa" class="easyui-numberbox" formatter="rupiah" style="width:250px;height:30px;text-align:right" data-options="label:'Sisa :',precision:0,groupSeparator:','" onChange="true" readonly="true"></td>
                    </tr>
            </form>
</fieldset>

//code
$('#fm').form('load');
        var a = $('#tagihan_bln').numberbox('getValue');
        var b = $('#potongan').numberbox('getValue');
        var sum = a.numberbox('getValue')-b.numberbox('getValue');
        $('#tagihan_sisa').numberbox('setValue',sum);
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!