EasyUI Forum
November 06, 2025, 04:43:35 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: group rows in datagrid  (Read 8972 times)
jaimi
Full Member
***
Posts: 121


View Profile
« 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
Logged
yamilbracho
Jr. Member
**
Posts: 64


View Profile Email
« Reply #1 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
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!