EasyUI Forum
May 28, 2024, 01:01:50 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: Attach searchbox to pagination in Datagrid  (Read 11036 times)
patana
Jr. Member
**
Posts: 50


View Profile
« on: May 26, 2014, 11:15:04 PM »

I would like to attach searchbox to pagination in Datagrid.
How to do that?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: May 27, 2014, 07:06:10 AM »

Please try this code:
Code:
var pager = $('#dg').datagrid('getPager');
var input = $('<input>').appendTo('body');
pager.pagination({buttons:input});
input.searchbox();
Logged
patana
Jr. Member
**
Posts: 50


View Profile
« Reply #2 on: June 13, 2014, 08:23:00 PM »

Sorry, It's not work. Maybe it's wrong [appendTo('body')]...but i cannot fix it.
« Last Edit: June 13, 2014, 08:34:34 PM by patana » Logged
patana
Jr. Member
**
Posts: 50


View Profile
« Reply #3 on: June 19, 2014, 06:53:14 PM »

Help!!!!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 on: June 19, 2014, 07:42:17 PM »

Please refer to this example http://jsfiddle.net/gdXCX/
Logged
patana
Jr. Member
**
Posts: 50


View Profile
« Reply #5 on: June 19, 2014, 08:51:13 PM »

It seems has problem with old version 1.3.3
Could you fix something to make it works on 1.3.3?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #6 on: June 19, 2014, 10:58:43 PM »

The 'buttons' property of pagination can accept a jQuery object that indicate the buttons since version 1.3.4. So you must to update your easyui to the newer version.
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!