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: '/0_6/Grid/GetPlayers',
         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: '/0_6/Grid/GetPlayers',
         autoLoad: true,
         columns: [ { field: 'ID' }, { field: 'Name' } ]
     });
 </script>