EasyUI Forum
November 06, 2025, 01:34:30 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: master detail datagrid expand  (Read 10578 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: February 05, 2015, 04:35:01 AM »

I followed your tutorial with the master detail datagrid.
The problem is that it doesn't resizes the grid at first time expanding and load the detail grid.
Not before the second expand it works. Where is the trick?

,onExpandRow: function(index,row){
    var ddv = $(this).datagrid('getRowDetail',index).find('table.ddv');
    ddv.datagrid({
     url: 'zuchtperiode.act.php?frm=frmZUP&act=S&prk=' + row.OLT31A004T_KEY,
     fitColumns:true,
     singleSelect:true,
     rownumbers:true,
     loadMsg:'loadMsg',
     height:'auto',
    queryParams : {sort: 'ZUV_DAT', order: 'DESC'},
     columns:[[
      {field:'ZUV_DAT',title:'Datum',width:100},
      {field:'ZUV_DES',title:'Protokoll',width:100},
      {field:'CBE_GER',title:'Aktion',width:100}
     ,{field:'CZS_GER',title:'Status',width:100}
     ]],
    onResize:function(){
     $('#edgZuchtperiode').datagrid('fixDetailRowHeight',index);
    },
    onLoadSuccess:function(){
     setTimeout(function(){
      $('#edgZuchtperiode').datagrid('fixDetailRowHeight',index);
     },0);
    }
   });
   alert('onExpandRow');
   $('#edgZuchtperiode').datagrid('fixDetailRowHeight',index);
  }//onExpandRow
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: February 05, 2015, 08:15:09 AM »

Please refer to this tutorial http://www.jeasyui.com/tutorial/datagrid/datagrid22.php
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 on: February 05, 2015, 11:08:55 PM »

That is what I allready did!
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!