EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: patana on May 26, 2014, 11:15:04 PM



Title: Attach searchbox to pagination in Datagrid
Post by: patana on May 26, 2014, 11:15:04 PM
I would like to attach searchbox to pagination in Datagrid.
How to do that?


Title: Re: Attach searchbox to pagination in Datagrid
Post by: jarry 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();


Title: Re: Attach searchbox to pagination in Datagrid
Post by: patana on June 13, 2014, 08:23:00 PM
Sorry, It's not work. Maybe it's wrong [appendTo('body')]...but i cannot fix it.


Title: Re: Attach searchbox to pagination in Datagrid
Post by: patana on June 19, 2014, 06:53:14 PM
Help!!!!


Title: Re: Attach searchbox to pagination in Datagrid
Post by: stworthy on June 19, 2014, 07:42:17 PM
Please refer to this example http://jsfiddle.net/gdXCX/


Title: Re: Attach searchbox to pagination in Datagrid
Post by: patana 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?


Title: Re: Attach searchbox to pagination in Datagrid
Post by: stworthy 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.