How to lock layers position in legend layertree?

Jun 20, 2015 at 1:14 PM
Dear all,

is there a way to prevent the user being able to move one layer up and down along the layers tree?
I have a number of mapgroups inside which I place some default layers and I want to avoid moving of these layers outside of their original group.

Thank you
Jun 22, 2015 at 9:00 AM
SOLVED! Found the solution at this link