By default the page bar on the datagrid will display the page list. To hide the page list, call 'getPager' method to get the page object and re-create it with showPageList property set to false.
var pager = $('#dg').datagrid('getPager');
pager.pagination({showPageList:false});