autoLoad : boolean Default: true


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

Examples

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