EasyUI Forum
March 29, 2024, 05:53:39 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: Is it possible to make the default groupView not expanded?  (Read 8949 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: September 12, 2014, 07:17:25 AM »

Is it possible to make the groupView not expanded as default?
or how to make the groupView collapsed as default.?

Thanks in advance
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 12, 2014, 07:49:18 AM »

Please call 'collapseGroup' method on all groups when loaded data successfully.
Code:
$('#dg').datagrid({
onLoadSuccess:function(){
var gcount = $(this).datagrid('options').view.groups.length;
for(var i=0; i<gcount; i++){
$(this).datagrid('collapseGroup', i);
}
}
})
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: September 14, 2014, 07:48:08 PM »

wow its works...  Smiley thank you

i hope you to make the documentation about that one...
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
xtrenge
Newbie
*
Posts: 1


View Profile Email
« Reply #3 on: April 23, 2015, 03:15:35 PM »

Please call 'collapseGroup' method on all groups when loaded data successfully.
Code:
$('#dg').datagrid({
onLoadSuccess:function(){
var gcount = $(this).datagrid('options').view.groups.length;
for(var i=0; i<gcount; i++){
$(this).datagrid('collapseGroup', i);
}
}
})

Soooo helpful !! thnx !
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!