EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on February 04, 2015, 04:59:44 AM



Title: group rows in datagrid
Post by: jaimi on February 04, 2015, 04:59:44 AM
I followed your example and created the following grid.
Bit I don't get any data back. Why?
THX Jaimi

 $('#edgZuchtperiode').edatagrid({
   title : 'Zucht-Periode'
  ,iconCls:'icon-pferd'
  ,width:'100%'
  ,height:'auto'
  ,collapsible:'true'
  ,columns:[[ 
    {field:'OLT31A004T_KEY',title:'ZuchtPeriodeKey',width:080,sortable:'true'/*,hidden:'true'*/}
    ,{field :'OLT30A001T_KEY_H',title:'HengstKey',width:080,sortable:'true'/*,hidden:'true'*/}
    ,{field :'BED_DAT',title:'Datum',width:80,sortable:'true'}
   ,{field :'ZUV_DES',title:'Beschreibung',width:100,sortable:'true'}
   ,{field :'CBE_GER',title:'CBE_GER',width:100,sortable:'true'}
  ]] ,//columns
  toolbar     : '#tobZuchtperiode',
  url         : 'zuchtperiode.act.php?frm=frmZUP&act=T&prk=' + vPRK,
  remoteSort  : 'true',
  idField     : 'OLT31A004T_KEY',
  queryParams : {sort: 'ZUP_BEG', order: 'DESC'},
  singleSelect: 'true',
  pagination  : 'true',
  pageSize    : 30,
  pageList    : [20,30,40,50],
  pagePosition: 'top',
  view: 'groupview',
  groupField: 'OLT30A001T_KEY_H',
  groupFormatter:function(value,rows){
   return value + ' - ' + rows.length + ' Item(s)';
  }
 });//edatagrid


Title: Re: group rows in datagrid
Post by: yamilbracho on February 04, 2015, 07:08:09 PM
First of all check if your PHP code is working fine, so type the url in your browser .
I mean the url "zuchtperiode.act.php?frm=frmZUP&act=T&prk=' + vPRK" and substitute the vars for dummy values

Regards