EasyUI Forum
May 08, 2024, 02:57:09 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: combogrid loadFilter exception  (Read 8157 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« 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/
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #2 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?
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!