EasyUI Forum
December 05, 2025, 10:36:48 PM *
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: Problem MergeCells on Footer Datagrid on: October 06, 2016, 12:14:52 AM
maybe i can help litle..

i have same problem about merger footer..

i add function
onLoadSuccess:function(){
       $(this).datagrid('mergeCells', {index: 1, field: 'nm_item',colspan: 2,type: 'footer'});
}

$('#tbl-kartu-stok').datagrid({
                url:'<?=base_url()?>ks/c_kartu_stok/data_kartu_stok/<?=$nama?>',
                toolbar:'#toolbar',
                pagination: 'true',
                pageSize:'20',
                remoteFilter: 'true',
                rownumbers: 'true',
                showFooter:'true',
                singleSelect: 'true',               
                columns:[[
                    {field:'kd_item',title:'Kode',width:70,halign:'center',align:'right', sortable:true},
                    {field:'nm_item',title:'Nama bahan',width:210,halign:'center',sortable:true},
                    {field:'satuan',title:'Satuan',width:120,halign:'center',align:'center',sortable:true},
                    {field:'stok',title:'Stok',width:80,sortable:true,halign:'center',align:'right', formatter: function(value,row,index){
                            return accounting.formatNumber(value);
                    }},
                    {field:'hpp',title:'HPP',width:110,sortable:true,halign:'center',align:'right', formatter: function(value,row,index){
                            return accounting.formatNumber(value);
                    }},
                    {field:'total',title:'Total',width:110,sortable:true,halign:'center',align:'right', formatter: function(value,row,index){
                            return accounting.formatNumber(value);
                    }},
                    {field:'c_date',title:'Create Date',width:150,halign:'center',align:'center',sortable:true},
                    {field:'m_date',title:'Modified Date',width:150,halign:'center',align:'center',sortable:true}
                ]]
            });
2  General Category / General Discussion / Re: dinamic column via php but sorter not working on: September 08, 2016, 01:00:09 AM
thank's
i try
3  General Category / General Discussion / dinamic column via php but sorter not working on: September 01, 2016, 03:22:31 AM
i create datagrid via php
example result:
{"field":"qty_sales","title":"SALES","align":"center","halign":"center","width":60,"sortable":true,"sorter":"sortnumber"}

i want result:
{"field":"qty_sales","title":"SALES","align":"center","halign":"center","width":60,"sortable":true,"sorter":sortnumber}

sortnumber without ("")

please help me.
sorry my english is not smooth... Roll Eyes
4  General Category / General Discussion / Re: edit combo datagrid on: September 09, 2013, 04:26:23 AM
Please check to see if $('#customer') already exists.

i try like this
var customer = $('#customer').combobox('getValues');
variable customer i get value
but try edit datagird value i get not value.
please help me...


5  General Category / General Discussion / edit combo datagrid on: September 08, 2013, 08:36:36 PM
help me...
i have sintaks
<th k_acara',width:120,align:'left',halign:'center',
                  formatter:function(value,row){
                                return row.n_acara;
                  },
                   editor:{
                             type:'combobox',
                             options:{
                                        valueField:'k_acara',
                                        textField:'n_acara',
                                        url:'get_acara_penjualan_edit.php?kcustomer='+ $('#customer').combobox('getValues'),
                                        required:true
                                    }
                                }
  ">Acara</th>

but have problem sintaks...
$('#customer').combobox('getValues')
not getValues...
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!