$('#dg').datagrid({ onLoadSuccess: function(){ var dg = $(this); $.map([1,2,3], function(index){ dg.datagrid('getExpander', index).hide(); }) }});