EasyUI Forum
November 04, 2025, 04:03:28 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 / Pager always missing when i'm using .datagrid('disableFilter') on: July 08, 2016, 09:00:36 AM
Hello guys,
I have problem with pager pagination on datagrid  Embarrassed because Pager always missing when i'm using .datagrid('disableFilter').

Code:
f_mod=0;
var pager = $('#dg-module').datagrid('getPager');    // get the pager of datagrid
pager.pagination({
    showPageList:true,
    buttons:[{
        iconCls:'icon-search',
        handler:function(){
            if(f_mod == 0) { $('#dg-module').datagrid('enableFilter'); f_mod=1; }
            else { $('#dg-module').datagrid('removeFilterRule'); $('#dg-module').datagrid('disableFilter'); f_mod=0; }        
        }
    }],
    onBeforeRefresh:function(){
        alert('before refresh');
        return true;
    }
});

how when removing the filter, pager pagination is not missing... thx  Grin
2  General Category / EasyUI for jQuery / combobox empty when changing the data in the DataGrid on: March 07, 2016, 06:53:53 AM
if I edit the data rows in the DataGrid , why only combobox which data is empty . how that data can be loaded ?
3  General Category / EasyUI for jQuery / Re: how do I choose "cancel" with other keys in Messager.confirm ? on: March 06, 2016, 01:52:05 AM
Thanks Jarry. It's work  Grin

[Thread Closed]
4  General Category / EasyUI for jQuery / how do I choose "cancel" with other keys in Messager.confirm ? on: March 05, 2016, 10:07:21 PM
I want to ask about Messager.confirm .

usually when I want to select cancel , I use the tab key on the keyboard . how do I choose cancel with other keys ( example : right arrow )
5  General Category / EasyUI for jQuery / Re: Problem MergeCells on Footer Datagrid on: November 16, 2015, 07:52:23 PM
I have 2 types of data output :

1.Data footer does not appear
Code:
{"total":10,"rows":[{"kd_item":"21","nm_item":"Bahan Sutera No.01","satuan":"m","stok":"4380","hpp":"21000","total":"91980000","c_date":"2015-11-12 20:47:51.514","m_date":"2015-11-12 23:24:41.624","b1":"10004","b2":null,"b3":null,"b4":null},{"kd_item":"16","nm_item":"bahan katun import","satuan":"m","stok":"9980","hpp":"17000","total":"169660000","c_date":"2015-10-29 08:48:03.761","m_date":"2015-11-02 23:53:43.262","b1":null,"b2":null,"b3":null,"b4":null},{"kd_item":"11","nm_item":"Bahan Kaos 20s","satuan":"m","stok":"9825","hpp":"9000","total":"88425000","c_date":"2015-10-29 08:48:03.014","m_date":"2015-11-13 21:26:37.976","b1":"30002","b2":null,"b3":null,"b4":null},{"kd_item":"10","nm_item":"Bahan Gamis","satuan":"m","stok":"9850","hpp":"18500","total":"182225000","c_date":"2015-10-29 08:48:03.013","m_date":"2015-11-13 22:34:56.104","b1":"20001","b2":null,"b3":null,"b4":null},{"kd_item":"9","nm_item":"Bahan Kaos 30s","satuan":"m","stok":"9785","hpp":"9000","total":"88065000","c_date":"2015-10-29 08:48:03.011","m_date":"2015-11-13 22:11:02.809","b1":"30001","b2":null,"b3":null,"b4":"10003"},{"kd_item":"8","nm_item":"Bahan baju Muslim 01","satuan":"m","stok":"9900","hpp":"21000","total":"207900000","c_date":"2015-10-29 08:48:02.98","m_date":"2015-11-06 00:02:25.7","b1":null,"b2":"30001","b3":null,"b4":""},{"kd_item":"6","nm_item":"Bahan Jeans Hitam","satuan":"m","stok":"9965","hpp":"23000","total":"229195000","c_date":"2015-10-29 08:47:45.954","m_date":"2015-11-06 00:28:33.372","b1":"30001","b2":null,"b3":null,"b4":null},{"kd_item":"5","nm_item":"Bahan batik","satuan":"m","stok":"9900","hpp":"15000","total":"148500000","c_date":"2015-10-29 08:47:45.926","m_date":"2015-11-15 00:13:48.643","b1":"10003","b2":"13","b3":null,"b4":null},{"kd_item":"2","nm_item":"bahan levis","satuan":"m","stok":"10000","hpp":"25000","total":"250000000","c_date":"2015-10-29 08:47:38.228","m_date":null,"b1":"","b2":null,"b3":null,"b4":null},{"kd_item":"1","nm_item":"bahan katun","satuan":"m","stok":"9935","hpp":"12000","total":"119220000","c_date":"2015-10-29 08:47:38.169","m_date":"2015-11-06 09:48:49.867","b1":"30001","b2":"20001","b3":"10003","b4":"10001"}],"footer":{"stok":93520,"nm_item":"Total Stok"}}

2.Data footer appears
Code:
{"total":10,"rows":[{"kd_item":"21","nm_item":"Bahan Sutera No.01","satuan":"m","stok":"4380","hpp":"21000","total":"91980000","c_date":"2015-11-12 20:47:51.514","m_date":"2015-11-12 23:24:41.624","b1":"10004","b2":null,"b3":null,"b4":null},{"kd_item":"16","nm_item":"bahan katun import","satuan":"m","stok":"9980","hpp":"17000","total":"169660000","c_date":"2015-10-29 08:48:03.761","m_date":"2015-11-02 23:53:43.262","b1":null,"b2":null,"b3":null,"b4":null},{"kd_item":"11","nm_item":"Bahan Kaos 20s","satuan":"m","stok":"9825","hpp":"9000","total":"88425000","c_date":"2015-10-29 08:48:03.014","m_date":"2015-11-13 21:26:37.976","b1":"30002","b2":null,"b3":null,"b4":null},{"kd_item":"10","nm_item":"Bahan Gamis","satuan":"m","stok":"9850","hpp":"18500","total":"182225000","c_date":"2015-10-29 08:48:03.013","m_date":"2015-11-13 22:34:56.104","b1":"20001","b2":null,"b3":null,"b4":null},{"kd_item":"9","nm_item":"Bahan Kaos 30s","satuan":"m","stok":"9785","hpp":"9000","total":"88065000","c_date":"2015-10-29 08:48:03.011","m_date":"2015-11-13 22:11:02.809","b1":"30001","b2":null,"b3":null,"b4":"10003"},{"kd_item":"8","nm_item":"Bahan baju Muslim 01","satuan":"m","stok":"9900","hpp":"21000","total":"207900000","c_date":"2015-10-29 08:48:02.98","m_date":"2015-11-06 00:02:25.7","b1":null,"b2":"30001","b3":null,"b4":""},{"kd_item":"6","nm_item":"Bahan Jeans Hitam","satuan":"m","stok":"9965","hpp":"23000","total":"229195000","c_date":"2015-10-29 08:47:45.954","m_date":"2015-11-06 00:28:33.372","b1":"30001","b2":null,"b3":null,"b4":null},{"kd_item":"5","nm_item":"Bahan batik","satuan":"m","stok":"9900","hpp":"15000","total":"148500000","c_date":"2015-10-29 08:47:45.926","m_date":"2015-11-15 00:13:48.643","b1":"10003","b2":"13","b3":null,"b4":null},{"kd_item":"2","nm_item":"bahan levis","satuan":"m","stok":"10000","hpp":"25000","total":"250000000","c_date":"2015-10-29 08:47:38.228","m_date":null,"b1":"","b2":null,"b3":null,"b4":null},{"kd_item":"1","nm_item":"bahan katun","satuan":"m","stok":"9935","hpp":"12000","total":"119220000","c_date":"2015-10-29 08:47:38.169","m_date":"2015-11-06 09:48:49.867","b1":"30001","b2":"20001","b3":"10003","b4":"10001"},{"stok":93520,"nm_item":"Total Stok"}],"footer":{"stok":93520,"nm_item":"Total Stok"}}

what the data is correct ??
6  General Category / EasyUI for jQuery / Re: Problem MergeCells on Footer Datagrid on: November 16, 2015, 06:44:27 PM
Please notice that the row index starts with 0. Try this code instead.
Code:
$('#tbl-kartu-stok').datagrid('mergeCells', {
                index: 0,
                field: 'nm_item',
                colspan: 2,
                type: 'footer'
            });

I already tried it , but it does not change
7  General Category / EasyUI for jQuery / Problem MergeCells on Footer Datagrid on: November 16, 2015, 09:11:16 AM
i don't know where my fault from merge cell on datagrid. can you help me.

Code:
$('#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}
                ]]
            });

this for mergecells :
Code:
$('#tbl-kartu-stok').datagrid('mergeCells', {
                index: 1,
                field: 'nm_item',
                colspan: 2,
                type: 'footer'
            });

output :
8  General Category / EasyUI for jQuery / how show output pdf from tcpdf in window ? on: November 10, 2015, 03:03:24 AM
i have problem with window jeasyui, i can't show output from tcpdf in window. but if i replace url in browser, it normal & show my output pdf.

this my script :
Code:
$('#ff-pembelian').form('submit',{
            onSubmit: function(){
                return $(this).form('validate');
            },
            success: function(){
            var url = '<?=base_url()?>lp/c_rpt_pembelian/rpt_general';
            $('#win').window({
        title: 'Print Out Laporan Pembelian',
        width:'60%',
        height:'60%',
        modal:true
    });
    $('#win').window('refresh', url);
            }
        });

but this output on window :
9  General Category / EasyUI for jQuery / Re: Datagrid : custom data combobox when insert row on: October 29, 2015, 08:50:33 PM
Thanks Jarry, It's work.
But i'm insert on 'onBeginEdit'.

onBeginEdit:function(rowIndex){
            var editors = $('#tbl-upah_list').datagrid('getEditors', rowIndex);
            var n0 = $(editors[0].target);
            var n1 = $(editors[1].target);
            var n2 = $(editors[2].target);
            var n3 = $(editors[3].target);
            var n4 = $(editors[4].target);

            n1.combobox({
                // get id from header #cc-bahan
                url: 'get_ukuran/'+$('#cc-bahan').combobox('getValue')                    
            });

            n4.numberbox({
                editable:false,
                readonly:true
            });

        }
10  General Category / EasyUI for jQuery / Re: Datagrid : custom data combobox when insert row on: October 29, 2015, 07:54:57 PM
I mean like this :

Header :
id | name
1 | 10001
2 | 10002
3 | 10003

Detail : (id from header)
id | name
1 | S
1 | M
1 | L
2 | M
2 | XL

if I choose 10001 then appear on Detail is S, M, L.
(sorry my english)
11  General Category / EasyUI for jQuery / Re: Datagrid : custom data combobox when insert row on: October 29, 2015, 05:16:23 PM
but I don't know class / id combobox in datagrid,  because I'm used javascript for create that. Can you help me ?  Sorry i'm newbie  Grin
12  General Category / EasyUI for jQuery / Datagrid : custom data combobox when insert row on: October 29, 2015, 09:57:11 AM
I want to change the value of the "Header" and when creating a new line of data on the "Detail" in accordance with the data "Header". how to completion, I had difficulty in determining the value of the "jadi".



13  General Category / EasyUI for jQuery / Problem edit currency on datagrid on: October 29, 2013, 07:40:46 PM
I am using a DataGrid to call a column from a database with the results that I have modified. suppose the original data is 12000 and after my modifications to 12,000.00 (without changing the data in the database).

But if I want to edit the data in the DataGrid with the "editing in the DataGrid" why when clicked 2x the value changed to 12 and not 12000. Is there a way so that when I click 2x then the value is automatically changed to 12000?

please help me
thank you
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!