1
Vote

issue with Advanced Search dialog displaying on subsequent search result pages.

description

If the search results yield more than one page of results, even if it was not open, the Avanced Search choice drop down appears when going to the next page of results. It can be closed manually, but it would be nice if it did not open up automatically. I looked at the code, and tried to add a "this.ShowPanel(false);" to the OnPreRender method of AdvancedSearchPanel.cs, but this did not seem to fix the issue. Any ideas on this would be appreciated.

comments

martain wrote Oct 30, 2009 at 9:41 AM

you can fix this issue by just removing the if statement that checks for a postback on line 206 in AdvancedSearchWebPart.
and just leave the last 3 lines of code

// we can assume that the user used the advanced search panel to perform an advanced search... show the panel.
string script = GetToggleJavaScriptCall(PanelToggleMode.Hide);
Page.ClientScript.RegisterStartupScript(this.GetType(), "SPASStartup", script, true);

// remove the advanced search properties from the OOTB search input
this.ExcludeAdvancedPropertiesFromSearchInput();

wrote Feb 13, 2013 at 8:28 PM