New to Kendo UI for jQuery? Download free 30-day trial
- Launch Theme Builder
- Blue Opal
- Bootstrap v3
- High Contrast
- Material Black
- Metro Black
- Office 365
Also available for:API REFERENCE
A common scenario is to save the user's preferences and settings when interacting with your application. These preferences should be restored once the user logs back in at any point in the future.
Kendo UI TreeList enables you to save the applied user preferences by using the getOptions method and then restore them using the setOptions method. These methods allow you to serialize TreeList's current state when needed and recover it later on.
In this particular example, we use the localStorage of the browser to save and load the TreeList widget's settings.
Further information on the setOptions and getOptions methods is available in the TreeList API section.