title: EasyUI Filter and serverside pagination jquery Conflict
body: <p>I am using <strong>EasyUI along with Liferay MVC portlet</strong>. I have applied <strong>serverside pagination and DataGrid filter on same datagrid</strong>. Without filter DataGrid pagination is working fine. But when I apply filter, no data is displayed on pagination's next page. After a lots of effort I found that in DataGrid filter plugin's JS (<strong>datagrid-filter.js</strong>) they have done this code for pagination:</p>
  
  <pre><code>if (opts.pagination){
      var dg = $(this);
      var pager = dg[name]('getPager');
      pager.pagination({
          onSelectPage:function(pageNum, pageSize){
              opts.pageNumber = pageNum;
              opts.pageSize = pageSize;
              pager.pagination('refresh',{
                  pageNumber:pageNum,
                  pageSize:pageSize
              });
  
              //dg.datagrid('loadData', state.filterSource);
              dg[name]('loadData', state.filterSource);
          },
          onBeforeRefresh:function(){
              //dg('reload');
              dg[name]('reload');
              return false;
          }
      });
      if (name == 'datagrid'){
          var start = (opts.pageNumber-1)*parseInt(opts.pageSize);
          var end = start + parseInt(opts.pageSize);
          data.rows = data.rows.slice(start, end);
      } else {
          var topRows = [];
          var childRows = [];
          $.map(data.rows, function(row){
              row._parentId ? childRows.push(row) : topRows.push(row);
          });
          data.total = topRows.length;
          var start = (opts.pageNumber-1)*parseInt(opts.pageSize);  
          var end = start + parseInt(opts.pageSize);  
          data.rows = $.extend(true,[],topRows.slice(start, end).concat(childRows));
      }
  }
  </code></pre>
  
  <p>Now if I comment this line:</p>
  
  <pre><code>dg[name]('loadData', state.filterSource);
  </code></pre>
  
  <p>then pagination works properly but then filter doesn't respond anything. How can I solve this issue?</p>