We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Toggle filter bar

Thread ID:

Created:

Updated:

Platform:

Replies:

99470 May 23,2011 11:24 AM UTC May 24,2011 09:51 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Navin
Asked On May 23, 2011 11:24 AM UTC

Hi,

Is it possible ot toggle the autofilter bar on the Grid?

I would like to let user decide if they need to see the filter bar. So at click of a button, i need Autofilter bar to be visible or vice versa.

Please advice.

Thanks,
Navin


Sridhar N [Syncfusion]
Replied On May 24, 2011 09:51 AM UTC

Hi Navin,

Thanks for your interest in Syncfusion products.

Query #1"Is it possible ot toggle the autofilter bar on the Grid?"

Your requirement can be achieved by setting the property ShowFilterBar in button click event for toggling. Please refer the below code snippet.

[Codebehind - C#]

protected void Filter_Click(object sender, EventArgs e)
{
if (this.GridGroupingControl1.TopLevelGroupOptions.ShowFilterBar)
this.GridGroupingControl1.TopLevelGroupOptions.ShowFilterBar = false;
else
this.GridGroupingControl1.TopLevelGroupOptions.ShowFilterBar = true;
}



For your convenience, we have created sample and the same can be downloaded from the following link.

Filter Toggle203203708.zip

Please let me know if you have any other questions or concerns.

Regards,
Sridhar.N


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;