public static TreeListViewDragDropBehavior GetAttachedBehavior(RadTreeListView gridview)
        {
            if (!instances.ContainsKey(gridview))
            {
                instances[gridview] = new TreeListViewDragDropBehavior();
                instances[gridview].AssociatedObject = gridview;
            }

            return(instances[gridview]);
        }
        public static void SetIsEnabled(DependencyObject obj, bool value)
        {
            TreeListViewDragDropBehavior behavior = GetAttachedBehavior(obj as RadTreeListView);

            behavior.AssociatedObject = obj as RadTreeListView;

            if (value)
            {
                behavior.Initialize();
            }
            else
            {
                behavior.CleanUp();
            }
            obj.SetValue(IsEnabledProperty, value);
        }