EasyUI Forum
March 28, 2024, 10:25:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: problem to show both filter and footer in EDAGRID  (Read 5196 times)
saddok
Newbie
*
Posts: 4


View Profile Email
« on: April 11, 2018, 03:03:03 AM »

So i have an EasyUI edatagrid   Smiley. 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  Undecided.

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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 12, 2018, 06:42:24 PM »

Please look at this example http://code.reloado.com/evuhes3/edit#preview. It works fine.
Logged
saddok
Newbie
*
Posts: 4


View Profile Email
« Reply #2 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 Cheesy.

another issue poped regarding next page  Roll Eyes but i fixed it by desabling remote filter param  Grin. i import data from oracle database  Wink.

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

Thanks again for help
Logged
saddok
Newbie
*
Posts: 4


View Profile Email
« Reply #3 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!