EasyUI Forum
May 06, 2024, 08:25:33 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 / display subgrid data with date limitation on: June 16, 2017, 08:41:06 AM
please help. How to display data in subgrid with date limitation. thank you
2  General Category / EasyUI for jQuery / Re: subgrid with filter on: March 16, 2017, 07:02:42 AM
please help me, how to add filter date to subgrid with the following code :

           $('#dg').datagrid({
                view: detailview,
                detailFormatter:function(index,row){
                    return '<div style="padding:2px"><table class="ddv"></table></div>';
                },
                onExpandRow: function(index,row){
                    var ddv = $(this).datagrid('getRowDetail',index).find('table.ddv');
                    ddv.datagrid({
                  url:'lap-pegawai-data-det.php?filternip='+row.nip,
                        fitColumns:false,
                        singleSelect:true,
                        rownumbers:true,
                        loadMsg:'Tunggu Sebentar',
                        height:'auto',
                        columns:[[
                     {field:'tanggal',title:'Tanggal',width:120,align:'center'},
                     {field:'keterangan',title:'Keterangan Absensi',width:400,align:'left'}
                        ]],
                        onResize:function(){
                            $('#dg').datagrid('fixDetailRowHeight',index);
                        },
                        onLoadSuccess:function(){
                            setTimeout(function(){
                                $('#dg').datagrid('fixDetailRowHeight',index);
                            },0);
                        }
                    });
                    $('#dg').datagrid('fixDetailRowHeight',index);
                }
            });

best regards and thank you

in this code will show all data (all date) in subgrid with same nip at parentgrid

url:'lap-pegawai-data-det.php?filternip='+row.nip,

i want add date filter or other criteria to limit data in datebase that will shown in subgrid
3  General Category / EasyUI for jQuery / subgrid with filter on: March 16, 2017, 06:34:21 AM
please help me, how to add filter date to subgrid with the following code :

           $('#dg').datagrid({
                view: detailview,
                detailFormatter:function(index,row){
                    return '<div style="padding:2px"><table class="ddv"></table></div>';
                },
                onExpandRow: function(index,row){
                    var ddv = $(this).datagrid('getRowDetail',index).find('table.ddv');
                    ddv.datagrid({
                  url:'lap-pegawai-data-det.php?filternip='+row.nip,
                        fitColumns:false,
                        singleSelect:true,
                        rownumbers:true,
                        loadMsg:'Tunggu Sebentar',
                        height:'auto',
                        columns:[[
                     {field:'tanggal',title:'Tanggal',width:120,align:'center'},
                     {field:'keterangan',title:'Keterangan Absensi',width:400,align:'left'}
                        ]],
                        onResize:function(){
                            $('#dg').datagrid('fixDetailRowHeight',index);
                        },
                        onLoadSuccess:function(){
                            setTimeout(function(){
                                $('#dg').datagrid('fixDetailRowHeight',index);
                            },0);
                        }
                    });
                    $('#dg').datagrid('fixDetailRowHeight',index);
                }
            });

best regards and 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!