Hi, I have a RadFilter that I am trying to add an expression to on the form load. The idea is that when someone clicks a hyperlink on a different page, they are redirected to a different page and the radfilter is set up for them with the data they clicked (in this specific case, it would Select Amends and put in the appropriate value.
I just want to mention that this code works exactly how I need it to when It is inside of a button click event on the page that gets redirected to.
The following is called in my page_load:
pnlSearch.Visible = False
pnlAdvanced.Visible = True
Dim amendsByExpression = New RadFilterContainsFilterExpression("Amends")
amendsByExpression.Value = Session("Search_Text")
rfAdvancedSearch.RootGroup.AddExpression(amendsByExpression)
rfAdvancedSearch.FireApplyCommand()
Why does the code above work when its encapsulated inside of a linkbutton click event, but not in the page load? How can I make it work in the Page Load?