EasyUI Forum
May 03, 2024, 08:51:11 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: datagrid row filter - How can is set the default operation for type=text  (Read 6027 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: June 12, 2014, 05:43:15 AM »

How can is set the default operation for filter input type=text ?

At this time, this operation is fixed to "contains" in the file datagrid-filter.js
There should be an default attribute for this where we can set the dafault operation type to "equals" or other.

(We would not use an filter icon to handle this problem. When the user enter a text in the field the filter operation should be done)
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 12, 2014, 06:37:08 PM »

The 'defaultFilterType','defaultFilterOperator' and 'defaultFilterOptions' properties are available now. Please download the newest 'datagrid-filter.js' file from http://jeasyui.com/extension/datagrid_filter.php. To change the default filter operator, try this:
Code:
$('#dg').datagrid({
  defaultFilterOperator: 'equal'
});
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #2 on: June 12, 2014, 11:46:10 PM »

Great!  Smiley
This is exactly the solution we were looking for - THX
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!