EasyUI Forum
April 24, 2024, 08:55:15 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: Searchfields at the top of the column labels  (Read 8343 times)
doev
Newbie
*
Posts: 22


View Profile
« on: November 29, 2013, 07:30:33 AM »

The headline says it all. Can I have a Search/Filter input at the top of the column labels?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 30, 2013, 01:05:23 AM »

Yes, please set 'filterPosition' property to 'top'. Be sure to download the newest 'datagrid-filter.js' file from http://www.jeasyui.com/extension/datagrid_filter.php.
Code:
$('#dg').datagrid({filterPosition:'top'}).datagrid('enableFilter');
Logged
doev
Newbie
*
Posts: 22


View Profile
« Reply #2 on: November 30, 2013, 04:33:18 AM »

Thx! That looks very good. Next step for me is to find out, how I can set "remoteFilter" to "true", cause the server have to do filter it.

<table
   ...
   remoteFilter="true"
   ...
>

... seems not be working.

Edit:
data-options="remoteFilter: 'true'" works fine!
« Last Edit: November 30, 2013, 04:36:02 AM by doev » Logged
doev
Newbie
*
Posts: 22


View Profile
« Reply #3 on: November 30, 2013, 06:14:46 AM »

The Filter-Row plugin, has bad column sizeing. Can I change that?
Logged
doev
Newbie
*
Posts: 22


View Profile
« Reply #4 on: December 12, 2013, 01:39:43 AM »

Is it possible to use a multi selectable dropbox for a colum filter?
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!