autoLoad : booleanDefault: true

When this setting is enabled the content of the grid will be loaded automatically after the creation of the grid.

Examples

disabled

    
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/Players/Get',
         autoLoad: false,
         columns: [ { field: 'ID' }, { field: 'Name' } ]
     });
     grid.reload(); //call .reload() explicitly in order to load the data in the grid
 </script>

  

enabled

    
 <table id="grid"></table>
 <script>
     $('#grid').grid({
         dataSource: '/Players/Get',
         autoLoad: true,
         columns: [ { field: 'ID' }, { field: 'Name' } ]
     });
 </script>