Category / Section
How to keep the UI state of the Listbox after pressing the back button?
In order to maintain the UI state of the Listbox after pressing the back button, you can use the Syncfusion API called the PersistSelection. This can be achieved by setting the PersistSelection to true as given in the following code example.
HTML
<div data-role="ejmlistbox" id="defaultlistbox" data-ej-persistselection="true" data-ej-showheader="false" data-ej-allowscrolling="false"> <ul> <li data-ej-text="Artwork"></li> <li data-ej-text="Mass"></li> <li data-ej-text="Folk"></li> </ul> </div> |