EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 08, 2025, 04:54:06 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Enable/Disable filterRow in datagrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: Enable/Disable filterRow in datagrid (Read 12963 times)
Fabrice
Jr. Member
Posts: 62
Enable/Disable filterRow in datagrid
«
on:
August 29, 2014, 09:30:46 AM »
I would like to have a toggle button for Enable(show), Disable(hide) filterRow in datagrid,I know how to show this row with EnableFilter but how can i do to hide this row?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Enable/Disable filterRow in datagrid
«
Reply #1 on:
August 30, 2014, 06:03:23 AM »
To hide the filter bar, try this:
Code:
$('#dg').datagrid('getPanel').find('tr.datagrid-filter-row').hide();
$('#dg').datagrid('resize');
Logged
Fabrice
Jr. Member
Posts: 62
Re: Enable/Disable filterRow in datagrid
«
Reply #2 on:
August 30, 2014, 08:38:59 AM »
that's perfect,
I add these two lines :
$('#dg').datagrid('removeFilterRule');
$('#dg').datagrid('doFilter');
to remove filters when filterbar is hidden
Thank you.
Logged
roberto
Jr. Member
Posts: 88
Re: Enable/Disable filterRow in datagrid
«
Reply #3 on:
February 21, 2016, 09:35:30 PM »
This does not work if view is groupview.
Any idea?
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...