EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: saddok on April 11, 2018, 03:03:03 AM



Title: problem to show both filter and footer in EDAGRID
Post by: saddok on April 11, 2018, 03:03:03 AM
So i have an EasyUI edatagrid   :). I really enjoy working with that framework but i have the following issue :
- i want to show both filter and footer rows .
- i can only show one at a time  :-\.

can somebody give an example where the two options enablefilter and showfooter co-existe in the same Edatagrid?

here is the code i use

 $(function(){
        $('#table1').edatagrid({
            url: 'charger.php?A=<?php print(htmlentities($_POST['text_opv'])); ?>',
            //saveUrl: ,
            updateUrl: 'save_user1.php',
            // destroyUrl: ',
            showfooter : 'true',
            onLoadSuccess:somma(),
            onAfterEdit:somma()

        }).edatagrid('enableFilter', [{
            field:'QUANTITE_FINALE',
            type:'numberbox',
            options:{precision:1},
            op:['equal','notequal','less','greater']
        },{
            field:'MONTANT_FINAL',
            type:'numberbox',
            options:{precision:1},
            op:['equal','notequal','less','greater']
        },]);
    }); 

Thank you in avdvance


Title: Re: problem to show both filter and footer in EDAGRID
Post by: stworthy on April 12, 2018, 06:42:24 PM
Please look at this example http://code.reloado.com/evuhes3/edit#preview. It works fine.


Title: Re: problem to show both filter and footer in EDAGRID
Post by: saddok on April 16, 2018, 07:13:19 AM
thanks for your help stworthy,
i've just changed my script source from local (<script type="text/javascript" src="THEMES/easy UI/plugins/datagrid-filter.js"></script>) to  web source (<script type="text/javascript" src="https://www.jeasyui.com/easyui/datagrid-filter.js"></script>) and it worked both filter and footer are shown :D.

another issue poped regarding next page  ::) but i fixed it by desabling remote filter param  ;D. i import data from oracle database  ;).

I wish the  documentation about functions on all Easyui framework have a more deep explanations with according parameters. also default parameters listed  :)

Thanks again for help


Title: Re: problem to show both filter and footer in EDAGRID
Post by: saddok on April 17, 2018, 01:27:07 AM
hello again

this thread helps understand the logic and behaviour of Filtering row and pagination in easyui datagrid.

https://stackoverflow.com/questions/25698071/easyui-filter-and-serverside-pagination-jquery-conflict