EasyUI Forum

General Category => Bug Report => Topic started by: Stefan B. on March 24, 2015, 06:25:33 AM



Title: combogrid loadFilter exception
Post by: Stefan B. on March 24, 2015, 06:25:33 AM
I Test the combogrid with loadFilter and there comes an exception when going in editor mode of datagrid
See: http://jsfiddle.net/8064xz7z/5/


Title: Re: combogrid loadFilter exception
Post by: jarry on March 24, 2015, 08:49:23 AM
You have returned a wrong data format from the 'loadFilter' function. Please try this updated example http://jsfiddle.net/8064xz7z/6/. It works fine.


Title: Re: combogrid loadFilter exception
Post by: Stefan B. on March 25, 2015, 01:08:56 AM
OK thanks.

Code:
     loadFilter: function(data){
          //filter data here ....

            return {
             total:data.length,
             rows:data
           }
     }

But i think this should be done internal by the combogrid
override the loadFilter method there?