question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] How do I initially hide the filter row?

See original GitHub issue

When I use filtering: true, the grid automatically shows the filtering row.

I would like it to be hidden by default and only shown when I click the filtering icon (same behaviour as is implemented for insert row).

Is this supported? What option do I have to set?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tabalinascommented, Feb 5, 2017

Indeed, one line is missing:

// turn off filtering right after grid initialization
$("#jsGrid").jsGrid("option", "filtering", false); 

Here is the working fiddle: https://jsfiddle.net/tabalinas/23j4pgp9/

0reactions
jeremylangerpersonalcommented, Jul 19, 2019

In my case, I didn’t want to show the “control” column, so I needed a way to toggle the filtering from an external button. Here’s the onclick function to toggle this filter:

function toggleFilter() {
	$("#jsGrid").jsGrid("option", "filtering", !$("#jsGrid").jsGrid("option", "filtering"));
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Hiding the filter row from the start in UI for ASP.NET AJAX
Hi, To hide the filter row initially set the AllowFilteringByColumn property to false in the aspx and set its visibility in the CheckBox ......
Read more >
How to hide and unhide rows in Excel - Ablebits
Go to the Home tab > Cells group, and click the Format button. Under Visibility, point to Hide & Unhide, and then select...
Read more >
Hide filter row when loading the grid - Forums - Infragistics
Is there a way to hide the filter row when loading the grid at first ? So, not visible at the beginning, but...
Read more >
Filter table hiding rows with JS - javascript - Stack Overflow
var sel = $("#Filter option:selected").text();. Question 2: Is it possible to, instead of this JS filtering, do a client ...
Read more >
FILTER() - AppSheet Help - Google Support
FILTER ("Orders", ([Customer] = [_THISROW].[Customer])) returns keys to rows in the Orders data set in which the Customers column value is equal to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found