var dg = $('#dg').datagrid({ url: null});// now load datadg.datagrid('options').url = ...;dg.datagrid('reload');