EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on March 16, 2015, 08:05:45 PM



Title: Is there any way to make group view not expanded as default?
Post by: aswzen 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/ (http://jsfiddle.net/aswzen/nv62Lf7v/4/)

thanks in advance