EasyUI Forum
May 05, 2024, 12:32:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid Filter error  (Read 3968 times)
JPi
Newbie
*
Posts: 18


View Profile Email
« on: October 17, 2016, 02:27:21 AM »

Hi,

I am trying to load datagrid on initialization of my project and I am getting the below error for a specific datagrid loading. What could be the possible cause for this ?

Unable to set property 'filterSource' of undefined or null reference

Snippet from datagrid-filter.js

var oldLoadDataMethod1 = $.fn.datagrid.methods.loadData;
   $.fn.datagrid.methods.loadData = function(jq, data){
      jq.each(function(){
         $.data(this, 'datagrid').filterSource = null;  ---> error line
      });
      return oldLoadDataMethod1.call($.fn.datagrid.methods, jq, data);
   };

Thanks,
JPi
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: October 17, 2016, 02:52:12 AM »

Please show an example to demonstrate your issue.
Logged
JPi
Newbie
*
Posts: 18


View Profile Email
« Reply #2 on: October 17, 2016, 03:29:28 AM »

My bad. Forgot to mention that the datagrid is of class="easyui-datagrid". Now working as expected.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!