RadSystems 8 Laravel bootstrap Project Menu

Does anyone have an example or idea on how i can make the menu remember its expanded and active state?
On the left i have a menu with sub menu items.
image1

When i click eg on Members the page loads and resets to all closed.
image2

Does anyone know how i can capture the onclick and store in cookies so when the page reloads it remembers what menus are collapsed and item selected?

Thanks in advance.