EasyUI Forum
May 13, 2024, 09:53:22 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: extend groupView.renderGroup  (Read 3677 times)
roth
Newbie
*
Posts: 2


View Profile
« on: February 27, 2018, 05:29:35 AM »

hi,

I tried:
Code:
  $.extend(this.pgrid.datagrid('options').view,{	  	
renderGroup: function(target, groupIndex, group, frozen){
$.fn.treegrid.defaults.view.renderGroup(target, groupIndex, group, frozen);
                        // do some own stuff
}  
});

The problem is i can not call the parent renderGroup (because maybe its already a extended function?)

How can i solve this? thanks

the
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 28, 2018, 07:41:23 AM »

Please try to use this code instead.
Code:
$.extend(this.pgrid.datagrid('options').view, {
renderGroup: function(target, groupIndex, group, frozen){
console.log('renderGroup')
return groupview.renderGroup.call(this, target, groupIndex, group, frozen);
}
});
Logged
roth
Newbie
*
Posts: 2


View Profile
« Reply #2 on: March 01, 2018, 02:44:31 AM »

Problem is that groupview is not defined.

Uncaught ReferenceError: groupview is not defined
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: March 02, 2018, 01:06:24 AM »

Please download the 'datagrid-groupview.js' file from https://www.jeasyui.com/extension/datagridview.php
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!