EasyUI Forum
September 14, 2025, 01:41:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: edatagrid pagination  (Read 6662 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: April 09, 2015, 11:06:19 PM »

Hi, I noticed a strange behavior:

When "pagination" is set to true, then it calls the "url" twice.

Does anyone has an explanation?


$('#edgFutter').edatagrid({
 
  title : 'Ration',
  iconCls:'icon-futter',
  width:'100%', 
  height:'auto',
  collapsible : 'true',

  columns:[[ 
    {field:'OLT33I021T_KEY',title:'RATKey',width:080,sortable:'true'/*,hidden:'true'*/}
   ,{field:'OLT30A001T_KEY',title:'HOMKey',width:080,sortable:'true'/*,hidden:'true'*/}
   ,{field:'OLT33H009T_KEY',title:'FUTKey',width:080,sortable:'true'/*,hidden:'true'*/}
  ]]//columns
  ,toolbar     : '#tobFutter'
  ,url         : 'futter.act.php?frm=frmRAT&act=T&prk=' + vPRK
 
  ,remoteSort  : 'true'
   ,idField     : 'OLT33I021T_KEY'
  ,queryParams : {sort: 'FUT_NAME', order: 'ASC'}
  ,rownumbers  : false
  ,singleSelect: 'true'
  ,pagination  : false
  ,pageSize    : 20
  ,pageList    : [10,20,30,40,50]
  ,pagePosition: 'top'
  ,destroyMsg  : {
     norecord:{title:'Hinweis',
               msg:  'Es wurde kein Satz ausgewählt.'
             },
    confirm :{title:'Bestätigung',
               msg:  'Klicken Sie Ok, um den Datensatz zu löschen.'
             }
   }//destroyMsg
 
 });//edatagrid
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 10, 2015, 12:39:02 AM »

Please refer to this example http://www.jeasyui.com/demo/main/index.php?plugin=Application&theme=default&dir=ltr&pitem=CRUD%20DataGrid.
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!