In Stadium6, I have a page with a filter panel and a Datagrid. When I specify a filter and apply then it works as expected. But when I navigate to another page and go back to the previous page then the filter gets reset. What is the recommended way that you can keep that selected filter so that when you navigate back to the page, the filter is still applied?
In the “Apply” button click event handler: Store the values entered in the filter controls in session variables. You can create such session variables in the Application Properties under “Session” → “Variables”
In the Page.Load event of this page: Populate the filter controls with the values from the session variables using SetValue actions. Also, pass the values to your query or API as parameters or (if you are using the DataGrid search box to filter the results) populate the DataGrid “SearchTerm” property in the Page.Load using a SetValue.
In the “Clear” button click event handler: Clear the session variables