title: ExtJS 4 : How To Reload Grid With The Same Parameter
body: <p>I wonder why ExtJS developers decide to remove <code>reload()</code> method in ExtJS 4 Store API. I think it's a bad decision.</p>
  
  <p>Here is my problem. I'm using the following code to initialize a grid's store:</p>
  
  <pre><code>store.load({
     params: {
         paramName: dynamicParameter
     }
  });
  </code></pre>
  
  <p><strong>NOTICE</strong> the <code>dynamicParameter</code> variable in the code above.</p>
  
  <p>Then, if I delete some records from the grid, I need to reload the store.</p>
  
  <p>The problem is: the code segment which reload the store should not know the <code>dynamicParameter</code> value.</p>
  
  <p>The code to delete records is like this:</p>
  
  <pre><code>function deleteGridItems(grid, deleteUrl){
      // get selected rows
      var records = grid.getSelectionModel().getSelection();
  
      // ...... (codes to send request for deletion is ignored) ......
  
      if(success){
          grid.getStore().reload();
      }
  }
  </code></pre>
  
  <p>Unfortunately, the <code>grid.getStore().reload()</code> above will be an error because in ExtJS 4, <code>reload()</code> function doesn't exist anymore.</p>
  
  <p>So how to reload the store with the same parameter??</p>
  
  <p>Thank you.</p>