프로그래밍/ExtJS

[ExtJS] store reload 시 파라미터 넘기기

암리타 2010. 1. 17. 16:53

검색한 후 검색어를 적용하면서 페이지를 이동하는 경우 검색어등의 파라미터를 넘길경우 아래와 같이 하면 된다.

   store.on({
      'beforeload':{
         fn: function(store, options){
            Ext.apply(options.params, {stext: document.getElementById('searchVal').value});
         }
      }
    });