You can create the datagrid and then hide it. When the data is loaded successfully, display the panel again and resize the datagrid.
$('#tt').edatagrid({
onLoadSuccess:function(){
$(this).edatagrid('getPanel').panel('open');
$(this).edatagrid('resize');
}
}).edatagrid('getPanel').panel('close');