EasyUI Forum
September 14, 2025, 12:53:47 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: Is there any way to make group view not expanded as default?  (Read 5025 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: March 16, 2015, 08:05:45 PM »

Yes, is there any way or option that i should set to make group view not expanded as default?

i don't want to use this code below because it will consume so much render time..
Code:
$('#dg').datagrid({
onLoadSuccess:function(){
var gcount = $(this).datagrid('options').view.groups.length;
for(var i=0; i<gcount; i++){
$(this).datagrid('collapseGroup', i);
}
}
})

here the fiddle
http://jsfiddle.net/aswzen/nv62Lf7v/4/

thanks in advance
« Last Edit: March 16, 2015, 08:19:32 PM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
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!