title: How to query data from server-side with Extjs4.1
body: <p>I just started to learn Extjs，and want to realize a server-side query。I have wrote some code like this in my Contriller of Extjs MVC：</p>
  
  <pre><code>'SearchPanel button[action=select]': {
                  'click' : function() {
                      //console.log(Ext.getDom('s_name').value );
                      console.log(Ext.getCmp('s_studentid').getValue());
                      var grid = Ext.ComponentQuery.query('studentList')[0];
                      var store  = grid.store;
  
                      store.filterBy(function(record) {
                          //return record.get('name') == '张新武' &amp;&amp; record.get('id') == 8;
                          var s_studentid = Ext.getCmp('s_studentid').getValue();
                          var s_name = Ext.getCmp('s_name').getValue();
                          var s_unikey = Ext.getCmp('s_unikey').getValue();
                          var s_type = Ext.getCmp('s_type').getValue();
                          var s_sex = Ext.getCmp('s_sex').getValue();
                          var s_college = Ext.getCmp('s_college').getValue();
                          var s_major = Ext.getCmp('s_major').getValue();
                          var s_ethnic = Ext.getCmp('s_ethnic').getValue();
                          return (s_studentid == "" || record.get('id') == s_studentid)
                              &amp;&amp;(s_name == "" || record.get('name').indexOf(s_name)&gt;=0)
                              &amp;&amp;(s_unikey == "" || record.get('name') == s_unikey)
                              &amp;&amp;(s_type == "" || record.get('type') == s_type)
                              &amp;&amp;(s_sex == "" || record.get('sex') == s_sex)
                              &amp;&amp;(s_college == "" || record.get('college') == s_college)
                              &amp;&amp;(s_major == "" || record.get('major') == s_major)
                              &amp;&amp;(s_ethnic == "" || record.get('ethnic') == s_ethnic);
                          console.log('invoke select');
                      });
                  }  
              }
  </code></pre>
  
  <p>But I found it query data from the Extjs store,not from the server-side.How do I change my code that it can query data from server-side.</p>