EasyUI Forum
September 14, 2025, 03:20:49 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: Extension DataGrid Filter Row - How can I disable a filter on runtime?  (Read 7487 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: November 04, 2014, 07:41:14 AM »

My Question is how can I disable the filter for the datagrid?

On the Extension "DataGrid Filter Row" there is ony the method 'enableFilter' no methode called 'disableFilter'!

But we change the table fields and data on runtime. So some fields are hidden and shown by select a combo value.
And with the current implementation then the filters not shown correct.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 05, 2014, 12:04:58 AM »

Please try to extend the 'disableFilter' method as below:
Code:
$.extend($.fn.datagrid.methods, {
disableFilter: function(jq){
return jq.each(function(){
$(this).datagrid({
loadFilter: $.fn.datagrid.defaults.loadFilter
});
});
}
})
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!